错误的ERR!找不到:git

Kra*_*tos 2 ember-app-kit

当我想在我的项目中复制ember-app-kit-master文件时,我执行

cmd: cd C:\Users\hp-pc\Desktop\MyApp
Run Code Online (Sandbox Code Playgroud)

然后

cmd: npm install
Run Code Online (Sandbox Code Playgroud)

但是我遇到了一些错误:

npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "G:\\Publish\\nodeJs\\\\node.exe" "G:\\Publish\\nodeJs\\node_mo
dules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\Users\hp-pc\Desktop\MyApp
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.9
npm ERR! code ENOGIT
Run Code Online (Sandbox Code Playgroud)

这是我的package.json的一部分:

 "repository": {
     "type": "git",
     "url": "git://github.com/stefanpenner/ember-app-kit.git"
  },
  "devDependencies": {
     "load-grunt-config": "git://github.com/Pradeek/load-grunt-config.git",
  }
Run Code Online (Sandbox Code Playgroud)

当我删除有关git的设置时,它工作正常.这是为什么?

Vin*_*243 5

您必须在计算机上安装Git-scm.NPM使用git来获取回购.此外,该命令npm docs可以与github一起使用来获取文档.所以也许npm检查是否安装了got.http://git-scm.com/downloads