Angular js不会安装在我的机器上

时间:2015-02-26 10:17:24

标签: javascript angularjs node.js install

我的机器上安装了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

我已经尝试清除节点缓存,更新节点并没有任何运气,任何想法?

1 个答案:

答案 0 :(得分:0)

当我卸载节点然后使用自制程序重新安装时,似乎可以解决问题。非常好的教程:https://www.youtube.com/watch?v=FqMIyTH9wSg