无法安装popper(git命令失败)

时间:2018-03-06 08:18:04

标签: git npm bootstrap-4 popper.js

我正在尝试安装popper(因为它是引导程序的对等依赖项)。但是这样做,我收到错误“错误:命令失败:git -c core.longpaths = true config --get remote.origin.url”。

我已经尝试过'git config --system core.longpaths true'命令,但我仍然遇到同样的错误。

完整的错误消息:

> npm ls
volvo-style@1.0.0 E:\Webapps\AspCore\Vcg.AspCore.Template\content\src\__VcgTemplateName__.Web
+-- bootstrap@4.0.0
+-- jquery@3.3.1
`-- UNMET PEER DEPENDENCY popper.js@^1.12.9

npm ERR! peer dep missing: popper.js@^1.12.9, required by bootstrap@4.0.0

SDECLE12@GNL10075NMJC2 E:\Webapps\AspCore\Vcg.AspCore.Template\content\src\__VcgTemplateName__.Web
> npm i --save popper
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:198: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:891:16)
npm WARN addRemoteGit     at Socket.<anonymous> (internal/child_process.js:342: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:497:12)
npm WARN addRemoteGit  pemrouz/buble resetting remote C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\git-github-com-pemrouz-buble-git-e606a5a1 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:198: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:891:16)
npm WARN addRemoteGit     at Socket.<anonymous> (internal/child_process.js:342: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:497: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\sdecle12\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/pemrouz/buble.git C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\git-github-com-pemrouz-buble-git-e606a5a1: Cloning into bare repository 'C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\git-github-com-pemrouz-buble-git-e606a5a1'...
npm ERR! git clone --template=C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/pemrouz/buble.git C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\git-github-com-pemrouz-buble-git-e606a5a1: fatal: unable to connect to github.com:
npm ERR! git clone --template=C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/pemrouz/buble.git C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\git-github-com-pemrouz-buble-git-e606a5a1: github.com[0: 192.30.253.112]: errno=No error
npm ERR! git clone --template=C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/pemrouz/buble.git C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\git-github-com-pemrouz-buble-git-e606a5a1: github.com[1: 192.30.253.113]: errno=No error
npm ERR! git fetch -a origin (https://github.com/pemrouz/buble.git) fatal: unable to access 'https://github.com/pemrouz/buble.git/': Failed to connect to github.com port 443: Timed out
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:198: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:891:16)
npm WARN addRemoteGit     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
npm WARN addRemoteGit  pemrouz/buble resetting remote C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\git-github-com-pemrouz-buble-git-ee085e1a 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:198: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:891:16)
npm WARN addRemoteGit     at Process.ChildProcess._handle.onexit (internal/child_process.js:226: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\sdecle12\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:pemrouz/buble.git C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\git-github-com-pemrouz-buble-git-ee085e1a: Cloning into bare repository 'C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\git-github-com-pemrouz-buble-git-ee085e1a'...
npm ERR! git clone --template=C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:pemrouz/buble.git C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\git-github-com-pemrouz-buble-git-ee085e1a: ssh: connect to host github.com port 22: Connection timed out
npm ERR! git clone --template=C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:pemrouz/buble.git C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\git-github-com-pemrouz-buble-git-ee085e1a: fatal: Could not read from remote repository.
npm ERR! git clone --template=C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:pemrouz/buble.git C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\git-github-com-pemrouz-buble-git-ee085e1a:

npm ERR! git clone --template=C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:pemrouz/buble.git C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\git-github-com-pemrouz-buble-git-ee085e1a: Please make sure you have the correct access rights
npm ERR! git clone --template=C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:pemrouz/buble.git C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\git-github-com-pemrouz-buble-git-ee085e1a: and the repository exists.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\rijs.resdir\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i" "--save" "popper"
npm ERR! node v6.11.2
npm ERR! npm  v3.10.10
npm ERR! code 128

npm ERR! Command failed: git -c core.longpaths=true clone --template=C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:pemrouz/buble.git C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\git-github-com-pemrouz-buble-git-ee085e1a
npm ERR! Cloning into bare repository 'C:\Users\sdecle12\AppData\Roaming\npm-cache\_git-remotes\git-github-com-pemrouz-buble-git-ee085e1a'...
npm ERR! ssh: connect to host github.com port 22: Connection timed out
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
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!     E:\Webapps\AspCore\Vcg.AspCore.Template\content\src\__VcgTemplateName__.Web\npm-debug.log

1 个答案:

答案 0 :(得分:2)

似乎错误是我需要安装的软件包的名称

我做了:

npm i --save popper

但应该这样做:

npm i --save popper.js
相关问题