Error: Cannot find module 'underscore' thrown in console for all Meteor
commands
Error: Cannot find module 'underscore' thrown in console for all Meteor
commands
After every meteor or meteorite command such as meteor or mrt create myapp
the following error is thrown. This error seemed to appear suddenly, as
meteor was functional the night before and no changes have been made
since.
Austins-MacBook-Pro:Projects austinrivas$ mrt create test-app
/Users/austinrivas/.meteor/tools/3cba50c44a/tools/meteor.js:1480
}).run();
^
Error: Cannot find module 'underscore'
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 /Users/austinrivas/.meteor/tools/3cba50c44a/tools/meteor.js:10:11
I have tried installing underscore manually with sudo npm install -g
underscore which returns
Austins-MacBook-Pro:Projects austinrivas$ sudo npm install -g underscore
Password:
npm http GET https://registry.npmjs.org/underscore
npm http 200 https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/underscore/-/underscore-1.5.2.tgz
npm http 200 https://registry.npmjs.org/underscore/-/underscore-1.5.2.tgz
npm WARN unmet dependency
/usr/local/share/npm/lib/node_modules/phonegap/node_modules/cordova
requires colors@'>=0.6.0' but will load
npm WARN unmet dependency
/usr/local/share/npm/lib/node_modules/phonegap/node_modules/colors,
npm WARN unmet dependency which is version 0.6.0-1
npm WARN unmet dependency
/usr/local/share/npm/lib/node_modules/phonegap/node_modules/node-static
requires colors@'>=0.6.0' but will load
npm WARN unmet dependency
/usr/local/share/npm/lib/node_modules/phonegap/node_modules/colors,
npm WARN unmet dependency which is version 0.6.0-1
underscore@1.5.2 /usr/local/share/npm/lib/node_modules/underscore
My ~/.bash_profile has the following paths
export PATH=/usr/local/share/npm/bin:$PATH
export NODE_PATH="/usr/local/share/npm/lib/node_modules"
export NODE_OPTIONS="--debug"
I've even tried reinstalling node and doing an npm cache clean but I'm not
sure what else to try.
Any further insight would be appreciated.
No comments:
Post a Comment