安装component失败
用命令npm install -g component安装失败 最后一段的安装提示内容是
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.1.7601
npm ERR! command "F:\\Game Design\\Game SoftWare\\nodejs\\\\node.exe" "F:\\Game
Design\\Game SoftWare\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g
" "component"
npm ERR! cwd C:\Users\ambrella
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ENOGIT
npm http 304 https://registry.npmjs.org/core-util-is
npm http 304 https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/ast-types
npm http 304 https://registry.npmjs.org/xregexp/2.0.0
npm http 304 https://registry.npmjs.org/recast
npm http 304 https://registry.npmjs.org/private
npm http 304 https://registry.npmjs.org/defs
npm http 304 https://registry.npmjs.org/escodegen
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\admin\npm-debug.log
npm ERR! not ok code 0
安装express和其他的就没问题,唯独这个不行,这是怎么回事?
2 回复
没有安装git吧
安装git,配好环境变量