“'git'不被识别为内部或外部命令,可操作程序或批处理文件。”

时间:2018-08-11 21:42:46

标签: angular angular-cli

详细信息: 角CLI:6.1.3 节点:8.11.3 npm版本:5.6.0

当我尝试通过执行ng new Project-name创建Angular项目时,我得到

'git' is not recognized as an internal or external command, operable program or batch file.

代替“成功创建项目名称”

command prompt

1 个答案:

答案 0 :(得分:1)

  1. 检查您的系统上是否安装了 GIT。如果未安装,请从以下 URL 下载并安装 Git 并安装

https://git-scm.com/

  1. 关闭您的命令提示符或 Visual Studio 代码或您正在使用的任何编辑器,然后重新打开。
  2. 创建新的 Angular 应用程序,它将按预期工作。