git未安装或未在PATH中 [英] git is not installed or not in the PATH
本文介绍了git未安装或未在PATH中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Windows,当我尝试运行npm install
时,它显示:
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?
项目git存储库为 https://github.com/linnovate/mean
推荐答案
您是否正确安装了Git?
Did you install Git correctly?
根据Bower站点,需要确保选中从Windows命令提示符运行Git"选项.
According to the Bower site, you need to make sure you check the option "Run Git from Windows Command Prompt".
我有一个问题,当我尝试安装Angular时找不到Git.我重新运行了git的安装程序并更改了设置,然后就可以了.
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.
在Bower网站上: http://bower.io/
From the bower site: http://bower.io/
这篇关于git未安装或未在PATH中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文