我试图安装和配置角种子在我的网络风暴IDE。在创建项目和下载角种子之后,我尝试运行npm install命令来安装所有的依赖项,比如页面says (https://github.com/angular/angular-seed)。但是,在尝试运行命令时,我发现了以下错误。错误给出如下:
bower angular-route#~1.4.0 ENOGIT git is not installed or not in the PATH
npm ERR! Windows_NT 6.3.9600
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.5
npm ERR! npm v2.11.2
npm ERR! code ELIFECYCLE
npm ERR! angular-seed@0.0.0 postinstall: `bower install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-seed@0.0.0 postinstall script 'bower install'.
npm ERR! This is most likely a problem with the angular-seed 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-seed
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\User\WebstormProjects\untitled\npm-debug.log我试图先通过运行命令npm install -g bower来安装bower,然后运行另一个命令bower install angular,但是它也不能工作。它显示了另一个错误:
bower angular#~1.4.0 ENOGIT git is not installed or not in the PATH有人能帮我找到这个问题的解决方案吗。请让我知道我做错了什么。
发布于 2015-07-03 08:04:08
你安装了git吗?如果您运行cmd.exe并编写
git你看到什么?如果在全局路径中正确安装了git,您将看到git帮助。
如果git只安装为Git Bash,则可以在Git Bash中运行bower。
或者,您可以使用此选项(重新)安装git,然后在命令promt (全局路径)中可以使用git。

https://stackoverflow.com/questions/31195491
复制相似问题