【问题标题】:Angular js wont install on my machineAngular js 不会安装在我的机器上
【发布时间】:2015-02-26 10:17:24
【问题描述】:

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

我试过清除节点缓存,更新节点,但没有运气,有什么想法吗?

【问题讨论】:

标签: javascript angularjs node.js installation


【解决方案1】:

似乎在我卸载节点然后使用自制软件重新安装时解决了这个问题。 P.s 非常好的教程:https://www.youtube.com/watch?v=FqMIyTH9wSg

【讨论】:

    猜你喜欢
    • 2014-01-17
    • 1970-01-01
    • 1970-01-01
    • 2021-03-13
    • 1970-01-01
    • 2011-09-26
    • 2023-02-17
    • 2015-12-16
    • 1970-01-01
    相关资源
    最近更新 更多