【问题标题】:'git' is not recognized as an internal or external command in my angular project在我的角度项目中,“git”未被识别为内部或外部命令
【发布时间】:2017-06-14 16:47:23
【问题描述】:

我收到此错误。我还添加了环境变量路径。请帮忙'git' is not recognized as an internal or external command, operable program or batch file.

【问题讨论】:

  • 你是如何安装 git 的?
  • 只是一个可能的问题:当您安装 git 时,您尝试运行 git 的控制台已经打开(假设它是 windows)?如果是这种情况,那么即使安装修改了 PATH,该会话的 PATH 变量也没有被修改。你能告诉我们这个的输出吗? echo %PATH%
  • C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\nodejs \;D:\Code;C:\Program Files\Git\cmd;C:\Program Files\Git\bin\git.exe;C:\Program Files\Git\cmd;C:\Users\Hi\AppData\漫游\npm;D:\Code;;C:\Program Files\Git\bin\git.exe;C:\Program Files\Git\cmd

标签: git


【解决方案1】:

为您的 Windows 下载 git 并安装它。刷新或重启系统

【讨论】:

    猜你喜欢
    • 2011-05-28
    • 2018-04-24
    • 1970-01-01
    • 2014-04-29
    • 1970-01-01
    • 1970-01-01
    • 2013-10-06
    • 2013-10-11
    相关资源
    最近更新 更多