У меня есть текущая зависимость в моих package.json
:NPM неудача на GitHub ветвь зависимости
"gulp": "github:gulpjs/gulp#4.0",
Это работает в течение некоторого времени, но вдруг я получаю следующее сообщение об ошибке:
λ npm i
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:206:12)
npm WARN addRemoteGit at emitTwo (events.js:106:13)
npm WARN addRemoteGit at ChildProcess.emit (events.js:191:7)
npm WARN addRemoteGit at maybeClose (internal/child_process.js:852:16)
npm WARN addRemoteGit at Socket.<anonymous> (internal/child_process.js:323:11)
npm WARN addRemoteGit at emitOne (events.js:96:13)
npm WARN addRemoteGit at Socket.emit (events.js:188:7)
npm WARN addRemoteGit at Pipe._handle.close [as _onclose] (net.js:492:12)
npm WARN addRemoteGit gulpjs/gulp#4.0 resetting remote C:\Users\ekalkj\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-4-0-ecf98f08 because of error: { 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:206:12)
npm WARN addRemoteGit at emitTwo (events.js:106:13)
npm WARN addRemoteGit at ChildProcess.emit (events.js:191:7)
npm WARN addRemoteGit at maybeClose (internal/child_process.js:852:16)
npm WARN addRemoteGit at Socket.<anonymous> (internal/child_process.js:323:11)
npm WARN addRemoteGit at emitOne (events.js:96:13)
npm WARN addRemoteGit at Socket.emit (events.js:188:7)
npm WARN addRemoteGit at Pipe._handle.close [as _onclose] (net.js:492:12)
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.origin.url' }
npm ERR! git clone --template=C:\Users\ekalkj\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/gulpjs/gulp.git C:\Users\ekalkj\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-4-0-ecf98f08: Cloning into bare repository 'C:\Users\ekalkj\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-4-0-ecf98f08'...
npm WARN addRemoteGit gulpjs/gulp#4.0 pre-existing cached repo C:\Users\ekalkj\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-gulpjs-gulp-git-4-0-4b46db44 points to undefined and not https://github.com/gulpjs/gulp.git
npm ERR! git submodule -q update --init --recursive: Unable to determine absolute path of git directory
npm ERR! git submodule -q update --init --recursive:
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:206:12)
npm WARN addRemoteGit at emitTwo (events.js:106:13)
npm WARN addRemoteGit at ChildProcess.emit (events.js:191:7)
npm WARN addRemoteGit at maybeClose (internal/child_process.js:852:16)
npm WARN addRemoteGit at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
npm WARN addRemoteGit gulpjs/gulp#4.0 resetting remote C:\Users\ekalkj\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-4-0-7c06e801 because of error: { 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:206:12)
npm WARN addRemoteGit at emitTwo (events.js:106:13)
npm WARN addRemoteGit at ChildProcess.emit (events.js:191:7)
npm WARN addRemoteGit at maybeClose (internal/child_process.js:852:16)
npm WARN addRemoteGit at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
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.origin.url' }
npm ERR! git clone --template=C:\Users\ekalkj\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror [email protected]:gulpjs/gulp.git C:\Users\ekalkj\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-4-0-7c06e801: Cloning into bare repository 'C:\Users\ekalkj\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-4-0-7c06e801'...
npm ERR! git clone --template=C:\Users\ekalkj\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror [email protected]:gulpjs/gulp.git C:\Users\ekalkj\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-4-0-7c06e801: ssh: connect to host github.com port 22: Connection timed out
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\ekalkj\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "i"
npm ERR! node v6.4.0
npm ERR! npm v3.10.7
npm ERR! code 128
npm ERR! Command failed: git -c core.longpaths=true clone --template=C:\Users\ekalkj\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror g[email protected]:gulpjs/gulp.git C:\Users\ekalkj\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-4-0-7c06e801
npm ERR! Cloning into bare repository 'C:\Users\ekalkj\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-4-0-7c06e801'...
npm ERR! ssh: connect to host github.com port 22: Connection timed out
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! C:\Projects\danskespil.website\npm-debug.log
Когда я удаляю зависимость от gulp 4, он работает так, как должен.
То же самое происходит при выполнении npm install glob-fs
, не так уж странно, поскольку оно также использует branch or tag.
Я думаю, что это может быть прокси-сервер предприятия, а npm - что-то еще, когда он наносит ответвление ветке или тегу.
Я попытался git config --global url."https://github.com/".insteadOf [email protected]:
, но не повезло, просто новая ошибка:
npm ERR! git submodule -q update --init --recursive: Unable to determine absolute path of git directory
npm ERR! git submodule -q update --init --recursive:
npm ERR! git submodule -q update --init --recursive: Unable to determine absolute path of git directory
npm ERR! git submodule -q update --init --recursive:
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\ekalkj\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "glob-fs"
npm ERR! node v6.4.0
npm ERR! npm v3.10.7
npm ERR! code 1
npm ERR! Command failed: git -c core.longpaths=true submodule -q update --init --recursive
npm ERR! Unable to determine absolute path of git directory
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! C:\Projects\danskespil.website\npm-debug.log
Я попытался обновить ГИТ-за-окон, nodejs и НПМ не повезло. Я попробовал добавить прокси к конфигурации NPM без везения. Я немного потерял, так что следующий шаг отладки для этой проблемы?
В нем говорится: «ssh: подключиться к хосту github.com порт 22: время ожидания подключения» –
«npm cache clean», а затем повторить –
Возможный дубликат [ssh: подключение к хосту github.com port 22: время ожидания подключения] http://stackoverflow.com/questions/15589682/ssh-connect-to-host-github-com-port-22-connection-timed-out) –