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

原文 标签 git npm bootstrap-4 popper.js

我正在尝试安装popper(因为它是引导程序的对等依赖项)。但是这样做时,出现错误“错误:命令失败:git -c core.longpaths = true配置--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

最佳答案

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

我做了:

npm i --save popper


但应该这样做:

npm i --save popper.js

相关文章:

git - 在Windows版Git的安装路径中,。/ git-bash.exe和bin / bash.exe和bin / sh.exe有什么区别?

git - 尽管有rebase,但仍将git分支更新为远程

javascript - npmjs中是否存在任何“作为战争出口”软件包?

javascript - esprima-six npm模块发生了什么?

javascript - 将全局导入模块模式转换为ES6模块

asp.net-mvc - 将Visual Studio 2017 MVC视图支架更新为Bootstrap 4

html - 将两列以表格形式叠加在移动设备上

android - Travis构建-无法从密钥集文件中检索密钥,因为它不存在

git - Git diff提交范围中双点“..”和三点“...”之间有什么区别?

javascript - 如何在不影响其他同名类的情况下覆盖CSS类