Angular &引用';吉特';未被识别为内部或外部命令、可操作程序或批处理文件。”;

Angular &引用';吉特';未被识别为内部或外部命令、可操作程序或批处理文件。”;,angular,angular-cli,Angular,Angular Cli,环境详情: 角度CLI:6.1.3 节点:8.11.3 npm版本:5.6.0 当我试图通过执行ng new project name创建角度项目时,我得到 'git' is not recognized as an internal or external command, operable program or batch file. 而不是“已成功创建项目名称” 检查您的系统上是否安装了GIT。如果未安装,请从下面的URL下载并安装Git 关闭命令提示符、visual studio代

环境详情: 角度CLI:6.1.3 节点:8.11.3 npm版本:5.6.0

当我试图通过执行
ng new project name
创建角度项目时,我得到

'git' is not recognized as an internal or external command, operable program or batch file.
而不是“已成功创建项目名称”

  • 检查您的系统上是否安装了GIT。如果未安装,请从下面的URL下载并安装Git
  • 关闭命令提示符、visual studio代码或正在使用的任何编辑器,然后重新打开它
  • 创建新的角度应用程序,它将按预期工作

  • 你们看到了吗:如何将Git添加到PATH环境变量中?你们能帮我吗@jonrsharpe@FaiyazSayeed尝试卸载Git并重新安装它。我记得它在安装过程中有一个选项可以将其添加到路径。@FaiyazSayed重试谢谢,问题已经解决