首页 > gulp 4 升级不了 Error: Command failed: git -c core.longpaths=true

gulp 4 升级不了 Error: Command failed: git -c core.longpaths=true

C:\Users\as>npm install gulpjs/gulp#4.0 -g
npm WARN addRemoteGit Error: Command failed: git -c core.longpaths=true config -
-get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit     at ChildProcess.exithandler (child_process.js:754:12)
npm WARN addRemoteGit     at ChildProcess.emit (events.js:110:17)
npm WARN addRemoteGit     at maybeClose (child_process.js:1019:16)
npm WARN addRemoteGit     at Socket.<anonymous> (child_process.js:1190:11)
npm WARN addRemoteGit     at Socket.emit (events.js:107:17)
npm WARN addRemoteGit     at Pipe.close (net.js:484:11)
npm WARN addRemoteGit  gulpjs/gulp#4.0 resetting remote C:\Users\as\AppData\Roam
ing\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-3014dfdc because of er
ror: { [Error: Command failed: git -c core.longpaths=true config --get remote.or
igin.url
npm WARN addRemoteGit ]
npm WARN addRemoteGit   killed: false,
npm WARN addRemoteGit   code: 1,
npm WARN addRemoteGit   signal: null,
npm WARN addRemoteGit   cmd: 'git -c core.longpaths=true config --get remote.ori
gin.url' }
npm WARN optional dep failed, continuing fsevents@1.0.12
C:\Users\as\AppData\Roaming\npm\gulp -> C:\Users\as\AppData\Roaming\npm\node_mod
ules\gulp\bin\gulp.js
gulp@4.0.0-alpha.2 C:\Users\as\AppData\Roaming\npm\node_modules\gulp
├── glob-watcher@3.0.0 (lodash.debounce@4.0.6, lodash.assignwith@4.0.7, async
-done@1.2.2, chokidar@1.6.0)
├── vinyl-fs@2.4.3 (merge-stream@1.0.0, vali-date@1.0.0, is-valid-glob@0.3.0,
 object-assign@4.1.0, graceful-fs@4.1.4, lazystream@1.0.0, strip-bom-stream@1.0.
0, strip-bom@2.0.0, through2-filter@2.0.0, lodash.isequal@4.2.0, gulp-sourcemaps
@1.6.0, vinyl@1.1.1, duplexify@3.4.3, mkdirp@0.5.1, readable-stream@2.1.4, throu
gh2@2.0.1, glob-stream@5.3.2)
├── gulp-cli@1.2.1 (mute-stdout@1.0.0, pretty-hrtime@1.0.2, interpret@1.0.1,
archy@1.0.0, tildify@1.2.0, fancy-log@1.2.0, v8flags@2.0.11, chalk@1.1.3, gulplo
g@1.0.0, lodash.sortby@4.5.0, semver-greatest-satisfied-range@1.0.0, wreck@6.3.0
, yargs@3.32.0, liftoff@2.2.4, matchdep@1.0.1)
└── undertaker@1.0.0 (undertaker-registry@1.0.0, last-run@1.1.1, lodash.flatt
en@4.2.0, lodash.defaults@4.0.1, lodash.reduce@4.4.0, lodash.map@4.4.0, bach@1.0
.0, es6-weak-map@2.0.1)

C:\Users\as>
【热门文章】
【热门文章】