首页 > 升级gulp#4.0报错

升级gulp#4.0报错

升级gulp#4.0报错

npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit     at F (G:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:78:19)
npm WARN addRemoteGit     at E (G:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:82:29)
npm WARN addRemoteGit     at G:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:93:16
npm WARN addRemoteGit     at FSReqWrap.oncomplete (fs.js:82:15)
npm WARN addRemoteGit  gulpjs/gulp#4.0 resetting remote C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-3014dfdc because of error: { [Error: not found: git] code: 'ENOGIT' }
npm ERR! git clone --template=C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/gulpjs/gulp.git C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-3014dfdc: undefined
npm ERR! git clone --template=C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/gulpjs/gulp.git C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-3014dfdc: undefined
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit     at F (G:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:78:19)
npm WARN addRemoteGit     at E (G:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:82:29)
npm WARN addRemoteGit     at G:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:93:16
npm WARN addRemoteGit     at FSReqWrap.oncomplete (fs.js:82:15)
npm WARN addRemoteGit  gulpjs/gulp#4.0 resetting remote C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\https-github-com-gulpjs-gulp-git-4e3bb526 because of error: { [Error: not found: git] code: 'ENOGIT' }
npm ERR! git clone --template=C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror https://github.com/gulpjs/gulp.git C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\https-github-com-gulpjs-gulp-git-4e3bb526: undefined
npm ERR! git clone --template=C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror https://github.com/gulpjs/gulp.git C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\https-github-com-gulpjs-gulp-git-4e3bb526: undefined
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit     at F (G:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:78:19)
npm WARN addRemoteGit     at E (G:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:82:29)
npm WARN addRemoteGit     at G:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:93:16
npm WARN addRemoteGit     at FSReqWrap.oncomplete (fs.js:82:15)
npm WARN addRemoteGit  gulpjs/gulp#4.0 resetting remote C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-ed33b0aa because of error: { [Error: not found: git] code: 'ENOGIT' }
npm ERR! git clone --template=C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:gulpjs/gulp.git C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-ed33b0aa: undefined
npm ERR! git clone --template=C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:gulpjs/gulp.git C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-ed33b0aa: undefined
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "G:\\Program Files\\nodejs\\node.exe" "G:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "gulpjs/gulp#4.0" "-g"
npm ERR! node v4.3.1
npm ERR! npm  v2.14.12
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!     E:\Workspaces\core-web\ROOT\dev\npm-debug.log

npm-debug.log:

0 info it worked if it ends with ok
1 verbose cli [ 'G:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'G:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   'gulpjs/gulp#4.0',
1 verbose cli   '-g' ]
2 info using npm@2.14.12
3 info using node@v4.3.1
4 verbose install initial load of C:\Users\Jayk\AppData\Roaming\npm\package.json
5 verbose readDependencies loading dependencies from C:\Users\Jayk\AppData\Roaming\npm\package.json
6 silly cache add args [ 'gulpjs/gulp#4.0', null ]
7 verbose cache add spec gulpjs/gulp#4.0
8 silly cache add parsed spec Result {
8 silly cache add   raw: 'gulpjs/gulp#4.0',
8 silly cache add   scope: null,
8 silly cache add   name: null,
8 silly cache add   rawSpec: 'gulpjs/gulp#4.0',
8 silly cache add   spec: 'github:gulpjs/gulp#4.0',
8 silly cache add   type: 'hosted',
8 silly cache add   hosted:
8 silly cache add    { type: 'github',
8 silly cache add      ssh: 'git@github.com:gulpjs/gulp.git#4.0',
8 silly cache add      sshUrl: 'git+ssh://git@github.com/gulpjs/gulp.git#4.0',
8 silly cache add      httpsUrl: 'git+https://github.com/gulpjs/gulp.git#4.0',
8 silly cache add      gitUrl: 'git://github.com/gulpjs/gulp.git#4.0',
8 silly cache add      shortcut: 'github:gulpjs/gulp#4.0',
8 silly cache add      directUrl: 'https://raw.githubusercontent.com/gulpjs/gulp/4.0/package.json' } }
9 verbose addRemoteGit caching gulpjs/gulp#4.0
10 verbose addRemoteGit gulpjs/gulp#4.0 is a repository hosted by github
11 silly tryGitProto attempting to clone git://github.com/gulpjs/gulp.git#4.0
12 silly tryClone cloning gulpjs/gulp#4.0 via git://github.com/gulpjs/gulp.git#4.0
13 verbose tryClone git-github-com-gulpjs-gulp-git-3014dfdc not in flight; caching
14 warn addRemoteGit Error: not found: git
14 warn addRemoteGit     at F (G:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:78:19)
14 warn addRemoteGit     at E (G:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:82:29)
14 warn addRemoteGit     at G:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:93:16
14 warn addRemoteGit     at FSReqWrap.oncomplete (fs.js:82:15)
14 warn addRemoteGit  gulpjs/gulp#4.0 resetting remote C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-3014dfdc because of error: { [Error: not found: git] code: 'ENOGIT' }
15 info resetRemote resetting C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-3014dfdc for gulpjs/gulp#4.0
16 silly gentlyRm C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-3014dfdc is being purged
17 verbose gentlyRm don't care about contents; nuking C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-3014dfdc
18 silly vacuum-fs purging C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-3014dfdc
19 silly vacuum-fs quitting because other entries in C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes
20 error git clone --template=C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/gulpjs/gulp.git C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-3014dfdc: undefined
20 error git clone --template=C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/gulpjs/gulp.git C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-3014dfdc: undefined
21 silly tryHTTPS attempting to clone git+https://github.com/gulpjs/gulp.git#4.0
22 silly tryClone cloning gulpjs/gulp#4.0 via git+https://github.com/gulpjs/gulp.git#4.0
23 verbose tryClone https-github-com-gulpjs-gulp-git-4e3bb526 not in flight; caching
24 warn addRemoteGit Error: not found: git
24 warn addRemoteGit     at F (G:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:78:19)
24 warn addRemoteGit     at E (G:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:82:29)
24 warn addRemoteGit     at G:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:93:16
24 warn addRemoteGit     at FSReqWrap.oncomplete (fs.js:82:15)
24 warn addRemoteGit  gulpjs/gulp#4.0 resetting remote C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\https-github-com-gulpjs-gulp-git-4e3bb526 because of error: { [Error: not found: git] code: 'ENOGIT' }
25 info resetRemote resetting C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\https-github-com-gulpjs-gulp-git-4e3bb526 for gulpjs/gulp#4.0
26 silly gentlyRm C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\https-github-com-gulpjs-gulp-git-4e3bb526 is being purged
27 verbose gentlyRm don't care about contents; nuking C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\https-github-com-gulpjs-gulp-git-4e3bb526
28 silly vacuum-fs purging C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\https-github-com-gulpjs-gulp-git-4e3bb526
29 silly vacuum-fs quitting because other entries in C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes
30 error git clone --template=C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror https://github.com/gulpjs/gulp.git C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\https-github-com-gulpjs-gulp-git-4e3bb526: undefined
30 error git clone --template=C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror https://github.com/gulpjs/gulp.git C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\https-github-com-gulpjs-gulp-git-4e3bb526: undefined
31 silly trySSH attempting to clone git@github.com:gulpjs/gulp.git#4.0
32 silly tryClone cloning gulpjs/gulp#4.0 via git@github.com:gulpjs/gulp.git#4.0
33 verbose tryClone git-github-com-gulpjs-gulp-git-ed33b0aa not in flight; caching
34 warn addRemoteGit Error: not found: git
34 warn addRemoteGit     at F (G:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:78:19)
34 warn addRemoteGit     at E (G:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:82:29)
34 warn addRemoteGit     at G:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:93:16
34 warn addRemoteGit     at FSReqWrap.oncomplete (fs.js:82:15)
34 warn addRemoteGit  gulpjs/gulp#4.0 resetting remote C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-ed33b0aa because of error: { [Error: not found: git] code: 'ENOGIT' }
35 info resetRemote resetting C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-ed33b0aa for gulpjs/gulp#4.0
36 silly gentlyRm C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-ed33b0aa is being purged
37 verbose gentlyRm don't care about contents; nuking C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-ed33b0aa
38 silly vacuum-fs purging C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-ed33b0aa
39 silly vacuum-fs quitting because other entries in C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes
40 error git clone --template=C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:gulpjs/gulp.git C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-ed33b0aa: undefined
40 error git clone --template=C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:gulpjs/gulp.git C:\Users\Jayk\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-ed33b0aa: undefined
41 verbose stack Error: not found: git
41 verbose stack     at F (G:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:78:19)
41 verbose stack     at E (G:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:82:29)
41 verbose stack     at G:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:93:16
41 verbose stack     at FSReqWrap.oncomplete (fs.js:82:15)
42 verbose cwd E:\Workspaces\core-web\ROOT\dev
43 error Windows_NT 10.0.10586
44 error argv "G:\\Program Files\\nodejs\\node.exe" "G:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "gulpjs/gulp#4.0" "-g"
45 error node v4.3.1
46 error npm  v2.14.12
47 error code ENOGIT
48 error not found: git
49 error Failed using git.
49 error This is most likely not a problem with npm itself.
49 error Please check if you have git installed and in your PATH.
50 verbose exit [ 1, true ]

是什么问题呢?

================
已解决,安装了git后OK了。
一开始还是不行,把git的bin路径添加到系统变量里边就OK了。
谢谢各位~


错误第一行就指明了错误原因 npm WARN addRemoteGit Error: not found: git
没有 git

安装git 就好了 安装github也行


我在系统变量里面添加了git的bin路径还是不行。求解救

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