NPM and Nodemon install errors

Having trouble getting packages installed in NPM? Getting an error that looks like this??

~ npm install -g nodemon
npm ERR! Darwin 13.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "nodemon"
npm ERR! node v0.10.32
npm ERR! npm  v2.0.0
npm ERR! path /Users/me/.nvm/v0.10.32/lib/node_modules/nodemon/node_modules/update-notifier/node_modules/configstore/node_modules/mkdirp/package.json
npm ERR! code ENOENT
npm ERR! errno 34

npm ERR! ENOENT, open '/Users/me/.nvm/v0.10.32/lib/node_modules/nodemon/node_modules/update-notifier/node_modules/configstore/node_modules/mkdirp/package.json'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>
~ which npm
/usr/local/bin/npm
~ node -v
v0.10.32
~ which node
/Users/me/.nvm/v0.10.32/bin/node
~ cd ~/Code/onelogin/search

The solution is simple.

npm cache clean

If this doesn't work, try updating npm itself, via:

npm update npm -g

Then run the above clean command again.


← Back to Overview