git 未安装或不在 PATH 中 [英] git is not installed or not in the PATH
本文介绍了git 未安装或不在 PATH 中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Windows,当我尝试运行 npm install
时,它显示:
mean@1.0.0 安装后 E:mean节点 node_modules/grunt-cli/bin/grunt 安装运行凉亭:安装"(凉亭)任务致命错误:git 未安装或不在 PATH 中npm 错误!奇怪的错误1npm 错误!不行 代码 0
有什么问题?如何解决?
项目git仓库是
Windows, when I try to run npm install
, it shows:
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
What is the problem? How to fix it?
The project git repository is https://github.com/linnovate/mean
解决方案
Did you install Git correctly?
According to the Bower site, you need to make sure you check the option "Run Git from Windows Command Prompt".
I had this issue where Git was not found when I was trying to install Angular. I re-ran the installer for git and changed my setting and then it worked.
From the bower site: http://bower.io/
这篇关于git 未安装或不在 PATH 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文