已安装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 Bash而不是cmd。
其他回答
您错过了环境路径。遵循以下步骤:
搜索“编辑系统环境变量”。 点击“环境变量”。 在“系统变量”部分,向下滚动并单击变量“Path”。点击“编辑”。 将此文本附加到“变量值”的末尾。
;%PROGRAMFILES%\Git\bin;%PROGRAMFILES%\Git\cmd
只需使用Git Bash而不是cmd。
NPM安装从git bash为我工作。 重启电脑后。
确保从列表中选择第二个或第三个选项来安装Git。它将通过自动修改PATH穿透Git命令到cmd;)
在Linux中:
如果你没有安装git,请使用:
sudo apt-get update
sudo apt-get install git
使用命令,你将知道目录在哪里,然后添加路径,如果它不在那个环境变量。