已安装Git并在路径中。
平台:Red Hat Enterprise Linux 5.8。
>which git
/usr/local/bin/git
然而鲍尔却找不到它:
bower angular#1.0.6 ENOGIT git is not installed or not in the PATH
建议的解决方案是什么?
已安装Git并在路径中。
平台:Red Hat Enterprise Linux 5.8。
>which git
/usr/local/bin/git
然而鲍尔却找不到它:
bower angular#1.0.6 ENOGIT git is not installed or not in the PATH
建议的解决方案是什么?
当前回答
确保从列表中选择第二个或第三个选项来安装Git。它将通过自动修改PATH穿透Git命令到cmd;)
其他回答
1.在环境变量中设置Git的路径。 2.在Windows命令提示符中, 运行cd项目\文件夹\路径\ 执行命令:bower install
只需使用Git Bash而不是cmd。
在Windows上,您可以尝试在命令提示符处设置路径:
set PATH=%PATH%;C:\Program Files\Git\bin;
在node.js命令提示符下执行以下命令,其中“<git path>”是git bin文件夹的路径:
set PATH=%PATH%;<git path>;
就像这样:
set PATH=%PATH%;C:\Program Files\Git\bin;
或者这个:(注意(x86))
set PATH=%PATH%;C:\Program Files (x86)\Git\bin;
这将把git添加到路径变量中。确保你输入正确,否则你可能会删除你的路径变量,这将是糟糕的。
只需使用Git Bash,而不是node.js或命令提示符
以安装ReactJS为例,打开Git Bash后,执行以下命令安装react:
bower install --react