'git未安装或路径未指定'安装凉亭组件时,即使有git& stackoverflow中给出的路径变量

时间:2016-02-11 07:21:03

标签: node.js git github npm bower

我正在开发一个项目,需要Git中的bower组件,即使在我的系统中使用GIT之后也没有安装它。我还设置了git / cmd的路径。

配置是:Windows7; GIT是2.7.0.windows1,Path是programfiles / git / cmd

我也尝试过在Stackoverflow中给出的各种解决方案,但没有解决我的问题。我做的一个有趣的观察是用户/ appdata中没有git

npm也安装在系统中。请建议我解决这个问题。

git not in the paththe git terminal

2 个答案:

答案 0 :(得分:1)

鲍尔明确表示其在" Windows Users"部分:

  

要在Windows上使用Bower,您必须正确安装Git for Windows。请务必查看下面显示的选项:

https://cloud.githubusercontent.com/assets/10702007/10532690/d2e8991a-7386-11e5-9a57-613c7f92e84e.png

https://cloud.githubusercontent.com/assets/10702007/10532694/dbe8857a-7386-11e5-9bd0-367e97644403.png

This issue证实了这一点:

  

我之前遇到过同样的问题,
  我只需重新安装所有内容,然后按these instructions

     

首先我安装了Git然后安装了bower,它解决了我的问题。

或者,至少在你的凉亭命令之前:

set PATH=%PATH%;C:\Program Files (x86)\Git\bin;

答案 1 :(得分:0)

我刚刚遇到了同样的问题..在搜索并尝试了很多人在stackoverflow和youtube中给出的答案之后..这一件事对我在Windows上工作..

  1. 我重新安装了Git ..然后.. check the third option

  2. 安装后..右键单击您的项目文件夹并选择“Git Bash Here”..它就像一个魅力......

  3. 同时检查窗口cmd ..并找到Git PATH ..

  4. 希望这会有所帮助。