Npm install: install Failed to read dependencies
I started learning Angular JS . I am experiencing this by building a simple phonecat app
I am following steps. Node.js loaded.
Trying to execute this command:npm install
An error occured: C:> npm install
npm ERR! install Couldn't read dependencies
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (
x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! path C:\package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -4058
npm ERR! package.json ENOENT, open 'C:\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 directo
ry.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (
x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! Uncaught, unspecified "error" event.
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! C:\npm-debug.log
C:\>
source to share
It looks like you haven't put your package.json file in your root directory. If you are starting a new one, you need to clone this repo. https://github.com/angular/angular-phonecat
source to share
Like Bilhan A said: you need to go to the folder where you cloned the project. From your question, I am assuming you are new to programming and want to learn Angularjs first. Node.js is not required for this. If you really want to learn Angular, I recommend Tutorials like this one , which don't require Node.js. Once you've figured out how it works, go back to Node.js and merge the two.
source to share
If this error is showing, just update npm, now I am facing this problem, so why am I updating here, it might help someone
$ npm install
npm ERR! install Couldn't read dependencies
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe"
"C:\\Program F iles\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"
"install"
npm ERR! node v4.4.5
npm ERR! npm v2.15.5
npm ERR! path C:\Users\joy\package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! package.json ENOENT: no such file or directory, open
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
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\joy\Desktop\TEMP\node\chatsys\npm-debug.log
source to share