Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NPM throws error "couldn't read dependencies"?

Tags:

node.js

npm

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?

like image 368
Anna Avatar asked Nov 28 '22 13:11

Anna


1 Answers

Try to update npm,It works for me

[sudo] npm install -g npm

for more info use this link:

like image 103
LifeInstructor Avatar answered Dec 09 '22 21:12

LifeInstructor