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

标签 git npm bootstrap-4 popper.js

我正在尝试安装 popper(因为它是 Bootstrap 的对等依赖项)。但这样做时,我收到错误“错误:命令失败: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

最佳答案

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

我做到了:

npm i --save popper

但应该这样做:

npm i --save popper.js

关于git - 安装 popper 失败(git 命令失败),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49126194/

相关文章:

css - 我怎样才能将 "fa-message"和头像和文字对齐

git-p4提交失败

linux - npm 包未在 Linux 上执行

javascript - npm install 无法安装 angularjs 库

php - 当我从 URL 中删除 public 并且在 url 上添加 Public 时,Laravel Bootstrap Styling 不起作用

html - 在页脚中上下对齐两个 div

git - stash 文件在 `git status` (git v.2.16.0) 中显示为未更改

node.js - 修改示例 Hello World Node.js 代码在 Google Compute Engine 中未生效

git: merge 分支并使用有意义的 merge 提交消息?

ios - (0, _reactNativeCodePush2.default) is not a function 错误在React native