node.js - Installing MEAN Stack: npm -v module.js: 338 throw err; Error: Cannot find module './cache/caching-client.js' -


i think have installed node.js before never used homebrew it. today tried walkthrough of application got stuck @ beginning. new programming utterly confused why can't work.

i have tried lot of things can't seem find answer.

these commands run in order install mean stack:

  1. ruby -e "$(curl -fssl https://raw.githubusercontent.com/homebrew/install/master/install)" (succesful no errors)
  2. brew install node (succesfull no errors)
  3. i check if node has installed typing: node -v v0.12.4
  4. i check if npm installed typing: npm -v

here error message:

module.js:338     throw err;           ^ error: cannot find module './cache/caching-client.js'     @ function.module._resolvefilename (module.js:336:15)     @ function.module._load (module.js:278:25)     @ module.require (module.js:365:17)     @ require (module.js:384:17)     @ /usr/local/lib/node_modules/npm/lib/npm.js:22:24     @ object.<anonymous> (/usr/local/lib/node_modules/npm/lib/npm.js:466:3)     @ module._compile (module.js:460:26)     @ object.module._extensions..js (module.js:478:10)     @ module.load (module.js:355:32)     @ function.module._load (module.js:310:12) 

i have installed node in different way other using homebrew , maybe messing things up. please let me know thoughts.

what have tried far uninstall node , reinstall using process: https://gist.github.com/danherbert/9520689

maybe you've fixed, answer might serve others.

i tried in post mario linked in comment, didn't work. happens npm installed @ /users/username/.node/bin/, added following line in .bash_profile file: export path="$home/.node/bin:$path".


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -