Skip to content

Instantly share code, notes, and snippets.

@garrettwilkin
Created February 27, 2012 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garrettwilkin/1927740 to your computer and use it in GitHub Desktop.
Save garrettwilkin/1927740 to your computer and use it in GitHub Desktop.
This is me, trying to install hook.io since it won't come down with NPM 1.1, i'm trying it manually
Linking in the hook.io folder:
-----------------------------
garrett@li284-151:~/hook.io$ sudo npm link
npm WARN eyes@0.1.7 dependencies field should be hash of <name>:<version-range> pairs
npm http GET https://github.com/substack/socket.io-client/tarball/master
npm http 200 https://github.com/substack/socket.io-client/tarball/master
/usr/local/bin/hookio -> /usr/local/lib/node_modules/hook.io/bin/hookio
/usr/local/lib/node_modules/hook.io -> /home/garrett/hook.io
Linking in the project folder:
-----------------------------
garrett@li284-151:~/goodnyou$ npm link hook.io
./node_modules/hook.io -> /usr/local/lib/node_modules/hook.io -> /home/garrett/hook.io
My code:
-------
//main hook.
var Hook = require('hookio').Hook;
var hook = new Hook();
hook.start();
The error:
--------
garrett@li284-151:~/goodnyou$ node first.js
node.js:197
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'hookio'
at Function._resolveFilename (module.js:332:15)
at Function._load (module.js:279:25)
at Module.require (module.js:356:17)
at require (module.js:372:17)
at Object.<anonymous> (/home/garrett/goodnyou/first.js:2:12)
at Module._compile (module.js:443:26)
at Object..js (module.js:461:10)
at Module.load (module.js:350:32)
at Function._load (module.js:308:12)
at Array.0 (module.js:481:10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment