鲍尔“Git不在PATH中”错误 [英] Bower "Git not in the PATH" error

查看:118
本文介绍了鲍尔“Git不在PATH中”错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚通过NPM为一个项目安装了git和bower。这是第一次使用。



然后我试着运行 bower install jQuery 例如,我得到这个特定的错误:



ENOGIT git未安装或未安装在PATH中



我在哪里可以实际定义路径以及如何以及何时说PATH,主要思路是什么?



另外,我真的需要一些好的资源来帮助学习这个问题背后的概念,或者学习一般的NPM用法。

我使用的是Windows 7,64位。

解决方案

安装 msysgit ,如鲍尔文档 a>:


要在Windows上使用Bower,必须正确安装msysgit。一定要检查下面显示的选项:

[]仅使用Git bash

[x]运行Git从Windows命令提示符下运行
$ b

[]从Windows命令提示符运行Git和包含的Unix工具

安装完成后,重新启动CMD。然后,您(和鲍尔)将能够从命令提示符下运行 git ,这将解决您的问题。


I just installed git and bower via NPM for a project. It's a first time use.

Then I tried running bower install jQuery for example, I get this specific error:

ENOGIT git is not installed or not in the PATH

Where can I actually define paths and how, and when we say PATHs, what's the main idea?

Also, I really need help with some good resources for learning the concept behind this question or learning NPM usage in general.

I'm using windows 7, 64-bit.

解决方案

Install msysgit, as stated in the Bower documentation:

To use Bower on Windows, you must install msysgit correctly. Be sure to check the option shown below:

[ ] Use Git bash only

[x] Run Git from the Windows Command Prompt

[ ] Run Git and included Unix tools from the Windows Command Prompt

After the installation has completed, restart CMD. You (and bower) will then be able to run git from the command prompt, which will fix your issue.

这篇关于鲍尔“Git不在PATH中”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆