首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >npm-install抛出角种子异常

npm-install抛出角种子异常
EN

Stack Overflow用户
提问于 2015-07-02 22:11:21
回答 1查看 580关注 0票数 0

我试图安装和配置角种子在我的网络风暴IDE。在创建项目和下载角种子之后,我尝试运行npm install命令来安装所有的依赖项,比如页面says (https://github.com/angular/angular-seed)。但是,在尝试运行命令时,我发现了以下错误。错误给出如下:

代码语言:javascript
复制
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,但是它也不能工作。它显示了另一个错误:

代码语言:javascript
复制
bower angular#~1.4.0            ENOGIT git is not installed or not in the PATH

有人能帮我找到这个问题的解决方案吗。请让我知道我做错了什么。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-07-03 08:04:08

你安装了git吗?如果您运行cmd.exe并编写

代码语言:javascript
复制
git

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

如果git只安装为Git Bash,则可以在Git Bash中运行bower。

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

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31195491

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档