NPM throws error "couldn't read dependencies"
yiffbook:home yiff$ npm install
npm ERR! install Couldn't read dependencies
npm ERR! package.json ENOENT, open '/home/package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directory.
npm ERR! System Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /home
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.23
npm ERR! path npm-debug.log
npm ERR! code UNKNOWN
npm ERR! errno -1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/npm-debug.log
npm ERR! not ok code 0
Could you help me fix this?
Try to update npm,It works for me
[sudo] npm install -g npm
for more info use this link:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With