首页 > npm not found git npm安装vue-devtools 报错

npm not found git npm安装vue-devtools 报错

:wampwwwvue-devtools-master>npm install
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit at F (C:Program Filesnodejsnode_modulesnpmnode_moduleswhichwhich.js:63:19)
npm WARN addRemoteGit at E (C:Program Filesnodejsnode_modulesnpmnode_moduleswhichwhich.js:72:29)
npm WARN addRemoteGit at C:Program Filesnodejsnode_modulesnpmnode_moduleswhichwhich.js:81:16
npm WARN addRemoteGit at C:Program Filesnodejsnode_modulesnpmnode_moduleswhichnode_modulesisexeindex.js:44:5
npm WARN addRemoteGit at C:Program Filesnodejsnode_modulesnpmnode_moduleswhichnode_modulesisexewindows.js:29:5
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:117:15)
npm WARN addRemoteGit yyx990803/buble-loader resetting remote C:UsersJserAppDataRoamingnpm-cache_git-remotesgit-github-com-yyx990803-buble-loader-git-0e8dc051 because of error: { Error: not found: git
npm WARN addRemoteGit at F (C:Program Filesnodejsnode_modulesnpmnode_moduleswhichwhich.js:63:19)
npm WARN addRemoteGit at E (C:Program Filesnodejsnode_modulesnpmnode_moduleswhichwhich.js:72:29)
npm WARN addRemoteGit at C:Program Filesnodejsnode_modulesnpmnode_moduleswhichwhich.js:81:16
npm WARN addRemoteGit at C:Program Filesnodejsnode_modulesnpmnode_moduleswhichnode_modulesisexeindex.js:44:5
npm WARN addRemoteGit at C:Program Filesnodejsnode_modulesnpmnode_moduleswhichnode_modulesisexewindows.js:29:5
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:117:15) code: 'ENOGIT' }
npm ERR! git clone --template=C:UsersJserAppDataRoamingnpm-cache_git-remotes_templates --mirror git://github.com/yyx990803/buble-loader.git C:UsersJserAppDataRoamingnpm-cache_git-remotesgit-github-com-yyx990803-buble-loader-git-0e8dc051: undefined
npm ERR! git clone --template=C:UsersJserAppDataRoamingnpm-cache_git-remotes_templates --mirror git://github.com/yyx990803/buble-loader.git C:UsersJserAppDataRoamingnpm-cache_git-remotesgit-github-com-yyx990803-buble-loader-git-0e8dc051: undefined
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit at F (C:Program Filesnodejsnode_modulesnpmnode_moduleswhichwhich.js:63:19)
npm WARN addRemoteGit at E (C:Program Filesnodejsnode_modulesnpmnode_moduleswhichwhich.js:72:29)
npm WARN addRemoteGit at C:Program Filesnodejsnode_modulesnpmnode_moduleswhichwhich.js:81:16
npm WARN addRemoteGit at C:Program Filesnodejsnode_modulesnpmnode_moduleswhichnode_modulesisexeindex.js:44:5
npm WARN addRemoteGit at C:Program Filesnodejsnode_modulesnpmnode_moduleswhichnode_modulesisexewindows.js:29:5
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:117:15)
npm WARN addRemoteGit yyx990803/buble-loader resetting remote C:UsersJserAppDataRoamingnpm-cache_git-remotesgit-https-github-com-yyx990803-buble-loader-git-1a84d00e because of error: { Error: not found: git
npm WARN addRemoteGit at F (C:Program Filesnodejsnode_modulesnpmnode_moduleswhichwhich.js:63:19)
npm WARN addRemoteGit at E (C:Program Filesnodejsnode_modulesnpmnode_moduleswhichwhich.js:72:29)
npm WARN addRemoteGit at C:Program Filesnodejsnode_modulesnpmnode_moduleswhichwhich.js:81:16
npm WARN addRemoteGit at C:Program Filesnodejsnode_modulesnpmnode_moduleswhichnode_modulesisexeindex.js:44:5
npm WARN addRemoteGit at C:Program Filesnodejsnode_modulesnpmnode_moduleswhichnode_modulesisexewindows.js:29:5
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:117:15) code: 'ENOGIT' }
npm ERR! git clone --template=C:UsersJserAppDataRoamingnpm-cache_git-remotes_templates --mirror https://github.com/yyx990803/... C:UsersJserAppDataRoamingnpm-cache_git-remotesgit-https-github-com-yyx990803-buble-loader-git-1a84d00e: undefined
npm ERR! git clone --template=C:UsersJserAppDataRoamingnpm-cache_git-remotes_templates --mirror https://github.com/yyx990803/... C:UsersJserAppDataRoamingnpm-cache_git-remotesgit-https-github-com-yyx990803-buble-loader-git-1a84d00e: undefined
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit at F (C:Program Filesnodejsnode_modulesnpmnode_moduleswhichwhich.js:63:19)
npm WARN addRemoteGit at E (C:Program Filesnodejsnode_modulesnpmnode_moduleswhichwhich.js:72:29)
npm WARN addRemoteGit at C:Program Filesnodejsnode_modulesnpmnode_moduleswhichwhich.js:81:16
npm WARN addRemoteGit at C:Program Filesnodejsnode_modulesnpmnode_moduleswhichnode_modulesisexeindex.js:44:5
npm WARN addRemoteGit at C:Program Filesnodejsnode_modulesnpmnode_moduleswhichnode_modulesisexewindows.js:29:5
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:117:15)
npm WARN addRemoteGit yyx990803/buble-loader resetting remote C:UsersJserAppDataRoamingnpm-cache_git-remotesgit-github-com-yyx990803-buble-loader-git-305e4109 because of error: { Error: not found: git
npm WARN addRemoteGit at F (C:Program Filesnodejsnode_modulesnpmnode_moduleswhichwhich.js:63:19)
npm WARN addRemoteGit at E (C:Program Filesnodejsnode_modulesnpmnode_moduleswhichwhich.js:72:29)
npm WARN addRemoteGit at C:Program Filesnodejsnode_modulesnpmnode_moduleswhichwhich.js:81:16
npm WARN addRemoteGit at C:Program Filesnodejsnode_modulesnpmnode_moduleswhichnode_modulesisexeindex.js:44:5
npm WARN addRemoteGit at C:Program Filesnodejsnode_modulesnpmnode_moduleswhichnode_modulesisexewindows.js:29:5
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:117:15) code: 'ENOGIT' }
npm ERR! git clone --template=C:UsersJserAppDataRoamingnpm-cache_git-remotes_templates --mirror git@github.com:yyx990803/buble-loader.git C:UsersJserAppDataRoamingnpm-cache_git-remotesgit-github-com-yyx990803-buble-loader-git-305e4109: undefined
npm ERR! git clone --template=C:UsersJserAppDataRoamingnpm-cache_git-remotes_templates --mirror git@github.com:yyx990803/buble-loader.git C:UsersJserAppDataRoamingnpm-cache_git-remotesgit-github-com-yyx990803-buble-loader-git-305e4109: undefined
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v6.2.0
npm ERR! npm v3.8.9
npm ERR! code ENOGIT

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! Please include the following file with any support request:
npm ERR! D:wampwwwvue-devtools-masternpm-debug.log


这个是里面有依赖包需要从git那边拉过来,而你没有在本地安装git,方法1:使用 npm install -g git 全局装上git. 方法2:到github下载客户端然后用git bash运行 npm install.

【热门文章】
【热门文章】