yo
yo copied to clipboard
Installation failed with ENOENT for package.json
My OS is mac os 10.8.4. node version: 0.8.18 npm version: 1.3.1
$ sudo npm install -g [email protected] # works fine
$ sudo npm install -g [email protected] # error occurs!
$ sudo npm install -g [email protected] # error occurs!
$ sudo npm install -g [email protected] # error occurs!
This error only occurs in 1.0.0-beta.5 to 1.0.0-beta.7
Error message
npm ERR! Error: ENOENT, open '/usr/local/lib/package.json'
That is a problem on your system. You should not run npm with sudo. Check out this gist to learn how to set up npm correctly: https://gist.github.com/isaacs/579814
Thanks for you help!