npm-install 为 angular-seed 抛出异常

npm-install throws exception for angular-seed

我正在尝试在我的 webstorm IDE 中安装和配置 angular-seed。创建项目并下载 angular-seed 后,我尝试 运行 npm install 命令安装所有依赖项,如页面所示 (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

我尝试先通过 运行ning 命令 npm install -g bower 安装 Bower,然后 运行ning 另一个命令 bower install angular,但它也不起作用。它显示另一个错误:

bower angular#~1.4.0            ENOGIT git is not installed or not in the PATH

任何人都可以帮助我找到问题的解决方案。请告诉我哪里做错了。

你有安装git吗? 如果你 运行 cmd.exe 并写

git

你看到了什么?如果 git 在全局路径中正确安装,您会看到 git 帮助。

如果 git 仅作为 Git Bash 安装,您可以 运行 bower Git Bash.

或者您可以使用此选项(重新)安装 git,然后 git 在命令提示符(全局路径)

中可用