Windows,当我尝试运行npm install时,它显示:

mean@1.0.0 postinstall E:\mean
node node_modules/grunt-cli/bin/grunt install
Running "bower:install" (bower) task

Fatal error : git is not installed or not in the PATH
npm ERR! weird error 1
npm ERR! not ok code 0

问题是什么?如何解决?

项目git仓库是https://github.com/linnovate/mean

最佳答案

您是否正确安装了Git?

根据Bower网站的介绍,您需要确保选中“从Windows命令提示符运行Git”选项。

我有这个问题,当我尝试安装Angular时找不到Git。我重新运行了git的安装程序并更改了设置,然后就可以了。

从凉亭站点:
http://bower.io/

关于windows - git未安装或未在PATH中,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/19290899/

10-12 00:28
查看更多