Launching Hubble: Error: Cannot find module 'request'
dillera opened this issue · comments
I'm using OSX ML, followed your directions but I'm a node noobe and don't have much troubleshooting exp w/ node. I've used brew to install node for me on the mac, and I have version v0.8.17.
I pulled hubble, ran the nmp install and then tried to launch hubble:
[09:53][dillera@massiveAir:~/Dropbox/devwork/hubble(master)]$ ./hubble.coffee
Error: Cannot find module 'request'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/Users/dillera/Dropbox/devwork/hubble/src/PollManager.coffee:4:13)
at Object.<anonymous> (/Users/dillera/Dropbox/devwork/hubble/src/PollManager.coffee:33:4)
at Module._compile (module.js:449:26)
at Object.require.extensions..coffee (/Users/dillera/Dropbox/devwork/hubble/node_modules/coffee-script/lib/coffee-script/coffee-script.js:30:21)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
Any suggestions as to what file it cannot find?
request is in package.json, so it should be installed upon npm install. Run npm install again, and let me know what your output is. (specifically if it shows all the packages installed)
assume you are good now - closing
Nope, same thing
[22:17][dillera@massiveAir:~/Dropbox/devwork/hubble(master)]$ npm install
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/pad
npm http GET https://registry.npmjs.org/express
npm http 304 https://registry.npmjs.org/coffee-script
npm http 304 https://registry.npmjs.org/express
npm http 304 https://registry.npmjs.org/pad
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/colors
[22:17][dillera@massiveAir:~/Dropbox/devwork/hubble(master)]$ ./hubble.coffee
Error: Cannot find module 'request'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/Users/dillera/Dropbox/devwork/hubble/src/PollManager.coffee:4:13)
at Object.<anonymous> (/Users/dillera/Dropbox/devwork/hubble/src/PollManager.coffee:33:4)
at Module._compile (module.js:449:26)
at Object.require.extensions..coffee (/Users/dillera/Dropbox/devwork/hubble/node_modules/coffee-script/lib/coffee-script/coffee-script.js:30:21)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
info:
$ npm --version
1.2.0
$ node --version
v0.8.17
$ uname -a
Darwin massiveAir 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
Re-read, and then I installed package and tried it:
[22:18][dillera@massiveAir:~/Dropbox/devwork/hubble(master)]$ npm install package
npm http GET https://registry.npmjs.org/package
npm http 200 https://registry.npmjs.org/package
npm http GET https://registry.npmjs.org/package/-/package-1.0.1.tgz
npm http 200 https://registry.npmjs.org/package/-/package-1.0.1.tgz
package@1.0.1 node_modules/package
[22:20][dillera@massiveAir:~/Dropbox/devwork/hubble(master)]$ ./hubble.coffee
Error: Cannot find module 'request'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/Users/dillera/Dropbox/devwork/hubble/src/PollManager.coffee:4:13)
at Object.<anonymous> (/Users/dillera/Dropbox/devwork/hubble/src/PollManager.coffee:33:4)
at Module._compile (module.js:449:26)
at Object.require.extensions..coffee (/Users/dillera/Dropbox/devwork/hubble/node_modules/coffee-script/lib/coffee-script/coffee-script.js:30:21)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
"npm install hubble"
On Wednesday, February 6, 2013 at 8:21 PM, andy diller wrote:
Re-read, and then I installed package and tried it:
[22:18][dillera@massiveAir:/Dropbox/devwork/hubble(master)]$ npm install package npm http GET https://registry.npmjs.org/package npm http 200 https://registry.npmjs.org/package npm http GET https://registry.npmjs.org/package/-/package-1.0.1.tgz npm http 200 https://registry.npmjs.org/package/-/package-1.0.1.tgz package@1.0.1 (mailto:package@1.0.1) node_modules/package [22:20][dillera@massiveAir:/Dropbox/devwork/hubble(master)]$ ./hubble.coffee Error: Cannot find module 'request' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:362:17) at require (module.js:378:17) at Object. (/Users/dillera/Dropbox/devwork/hubble/src/PollManager.coffee:4:13) at Object. (/Users/dillera/Dropbox/devwork/hubble/src/PollManager.coffee:33:4) at Module._compile (module.js:449:26) at Object.require.extensions..coffee (/Users/dillera/Dropbox/devwork/hubble/node_modules/coffee-script/lib/coffee-script/coffee-script.js:30:21) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12)—
Reply to this email directly or view it on GitHub (#9 (comment)).
mmm nope:
[22:20][dillera@massiveAir:~/Dropbox/devwork/hubble(master)]$ npm install hubble
npm WARN install Refusing to install hubble as a dependency of itself
woah, never seen that one before - what OS you on? maybe try updating node/npm?
npm update - maybe that will do it.
OK, tried it from scratch- I think there was an issue with Npm downloading some packages and SSL cert errors which caused them not to install. I removed everything and re-installed and it's working.
Glad you got it worked out.