Angular js 无法安装在我的机器上
Angular js wont install on my machine
我的机器上安装了 node.js,我安装的版本是:v0.12.0。当我使用 sudo npm install 时按照说明操作,我收到以下错误:
npm ERR! install Couldn't read dependencies
npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.0
npm ERR! npm v2.6.0
npm ERR! path /Users/aston.haigh/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -2
npm ERR! package.json ENOENT, open '/Users/aston.haigh/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! Please include the following file with any support request:
npm ERR! /Users/aston.haigh/Projects/astonhaigh.co.uk/npm-debug.log
我试过清除节点缓存、更新节点,但没有成功,有什么想法吗?
似乎解决了我卸载节点然后使用自制软件重新安装时的问题。 P.s 非常好的教程:https://www.youtube.com/watch?v=FqMIyTH9wSg
我的机器上安装了 node.js,我安装的版本是:v0.12.0。当我使用 sudo npm install 时按照说明操作,我收到以下错误:
npm ERR! install Couldn't read dependencies
npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.0
npm ERR! npm v2.6.0
npm ERR! path /Users/aston.haigh/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -2
npm ERR! package.json ENOENT, open '/Users/aston.haigh/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! Please include the following file with any support request:
npm ERR! /Users/aston.haigh/Projects/astonhaigh.co.uk/npm-debug.log
我试过清除节点缓存、更新节点,但没有成功,有什么想法吗?
似乎解决了我卸载节点然后使用自制软件重新安装时的问题。 P.s 非常好的教程:https://www.youtube.com/watch?v=FqMIyTH9wSg