node.js - npm install fails with "Cannot find module 'glob'" -


here output on console:

floydpink@mbp mean-app (master) $ npm install npm err! darwin 13.4.0 npm err! argv "node" "/usr/local/bin/npm" "install" npm err! node v0.10.32 npm err! npm  v2.0.0 npm err! code module_not_found  npm err! cannot find module 'glob' npm err!  npm err! if need help, may report error at: npm err!     <http://github.com/npm/npm/issues>  npm err! please include following file support request: npm err!     /users/floydpink/source/swara-server/mean-app/npm-debug.log floydpink@mbp mean-app (master) $  

and npm-debug.log:

0 info worked if ends ok 1 verbose cli [ 'node', '/usr/local/bin/npm', 'install' ] 2 info using npm@2.0.0 3 info using node@v0.10.32 4 verbose node symlink /usr/local/bin/node 5 verbose stack error: cannot find module 'glob' 5 verbose stack     @ function.module._resolvefilename (module.js:338:15) 5 verbose stack     @ function.module._load (module.js:280:25) 5 verbose stack     @ module.require (module.js:364:17) 5 verbose stack     @ require (module.js:380:17) 5 verbose stack     @ object.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/completion/file-completion.js:5:12) 5 verbose stack     @ module._compile (module.js:456:26) 5 verbose stack     @ object.module._extensions..js (module.js:474:10) 5 verbose stack     @ module.load (module.js:356:32) 5 verbose stack     @ function.module._load (module.js:312:12) 5 verbose stack     @ module.require (module.js:364:17) 6 verbose cwd /users/floydpink/source/swara-server/mean-app 7 error darwin 13.4.0 8 error argv "node" "/usr/local/bin/npm" "install" 9 error node v0.10.32 10 error npm  v2.0.0 11 error code module_not_found 12 error cannot find module 'glob' 13 error if need help, may report error at: 13 error     <http://github.com/npm/npm/issues> 14 verbose exit [ 1, true ] 

i upgraded version of nodejs , npm few days , things have been fine until yesterday.

could point me right direction in fixing this?

i faced exact issue. did not have brew on ubuntu amazon ec2 instance(and did not want install it). uninstalled npm using sudo npm uninstall npm –g , ran make install command again in npm directory recompile npm , fixed issue.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -