Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

package.json file not found on install #206

Closed
jjr2527 opened this issue May 9, 2013 · 1 comment
Closed

package.json file not found on install #206

jjr2527 opened this issue May 9, 2013 · 1 comment

Comments

@jjr2527
Copy link

jjr2527 commented May 9, 2013

I received a file not found error referencing a package.json file. After creating the file the errors continue. Should this file be installed by default with default data?

npm ERR! Error: No 'name' field
npm ERR! at validName (/usr/local/Cellar/node/0.8.17/lib/node_modules/npm/node_modules/read-package-json/read-json.js:557:40)
npm ERR! at final (/usr/local/Cellar/node/0.8.17/lib/node_modules/npm/node_modules/read-package-json/read-json.js:340:27)
npm ERR! at /usr/local/Cellar/node/0.8.17/lib/node_modules/npm/node_modules/read-package-json/read-json.js:140:33
npm ERR! at cb (/usr/local/Cellar/node/0.8.17/lib/node_modules/npm/node_modules/slide/lib/async-map.js:48:11)
npm ERR! at /usr/local/Cellar/node/0.8.17/lib/node_modules/npm/node_modules/read-package-json/read-json.js:320:48
npm ERR! at fs.js:117:20
npm ERR! at /usr/local/Cellar/node/0.8.17/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:53:5
npm ERR! at /usr/local/Cellar/node/0.8.17/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:62:5
npm ERR! at Object.oncomplete (fs.js:297:15)
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-@googlegroups.com

npm ERR! System Darwin 11.4.2
npm ERR! command "/usr/local/Cellar/node/0.8.17/bin/node" "/usr/local/bin/npm" "install" "-g" "generator-angular"
npm ERR! cwd /Users/noone/Dropbox/AppAngular
npm ERR! node -v v0.8.17
npm ERR! npm -v 1.2.0
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/noone/Dropbox/AppAngular/npm-debug.log
npm ERR! not ok code 0

@passy
Copy link
Member

passy commented May 9, 2013

You should update your node and npm installation. I don't know which version of npm node 0.8.17 included, but it might be incompatible with one of the packages you tried to install.

@passy passy closed this as completed May 9, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants