本文介绍了运行“npm install”时出现错误在angular-phonecat目录中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这里是错误信息:
> [email protected] postinstall D:\prem\angular\angular-phonecat
> bower install
bower ENOGIT git is not installed or not in the PATH
npm ERR! Windows_NT 6.1.7600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs
\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: `bower install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'bower install'
.npm ERR! This is most likely a problem with the angular-phonecat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! bower install
npm ERR! You can get their info via:
npm ERR! npm owner ls angular-phonecat
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! D:\prem\angular\angular-phonecat\npm-debug.log
推荐答案
您的计算机上没有安装GIT。另请参阅此处:
You don't have GIT installed on your machine. See also here: cannot start angular-phonecat, postinstall script failing
我不能将其标记为重复的,因为答案在其他问题上不被接受。
I cannot marked it as duplicate since the answer was not accepted on the other question.
这篇关于运行“npm install”时出现错误在angular-phonecat目录中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!