当我想在我的项目中复制ember-app-kit-master文件时,我执行
cmd: cd C:\Users\hp-pc\Desktop\MyApp
然后
cmd: npm install
但是我遇到了一些错误:
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
这是我的 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",
}
当我删除有关 git 的设置时,它工作正常。这是为什么?