无法在Windows 7上安装Angularjs

时间:2015-08-19 19:57:17

标签: angularjs node.js git

在Windows 7上安装angularjs时失败,显示以下消息:

C:\angular.js>npm install
npm ERR! git rev-list -n1 ced17cbe52c1412b2ada53160432a5b681f37cd7: fatal: bad o
bject ced17cbe52c1412b2ada53160432a5b681f37cd7
npm ERR! git rev-list -n1 ced17cbe52c1412b2ada53160432a5b681f37cd7:
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\nodejs\\\\node.exe" "C:\\nodejs\\node_modules\\npm\\bin\\npm-
cli.js" "install"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code 128

npm ERR! Command failed: git -c core.longpaths=true rev-list -n1 ced17cbe52c1412
b2ada53160432a5b681f37cd7
npm ERR! fatal: bad object ced17cbe52c1412b2ada53160432a5b681f37cd7
npm ERR!
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:\angular.js\npm-debug.log

致命的坏对象是什么原因?

2 个答案:

答案 0 :(得分:0)

如果你在IDE之类的IDE控制台窗口中安装角度,例如webstorm,你可以尝试用你的powershell安装它,例如,我认为应该解决这个错误。

答案 1 :(得分:0)

解决!

问题出在angularjs package.json文件中提到的devDependencies“grunt-jasmine-node”。

将其从“grunt-jasmine-node”:“git://github.com/vojtajina/grunt-jasmine-node.git#fix-grunt-exit-code”更改为“grunt-jasmine-node”: “〜2.0.1”

grunt-jasmine-node是指致命对象