npm install 报错 C:Program FilesGitcmdgit.EXE ls-remote -h -t git://github.com/adobe-webplatform解决
Posted 沛沛老爹
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了npm install 报错 C:Program FilesGitcmdgit.EXE ls-remote -h -t git://github.com/adobe-webplatform解决相关的知识,希望对你有一定的参考价值。
报错信息如下
......
27013 silly saveTree `-- ssf@0.10.3
27013 silly saveTree `-- frac@1.1.2
27014 verbose stack Error: exited with error code: 128
27014 verbose stack at ChildProcess.<anonymous> (C:\\Users\\Admin\\AppData\\Roaming\\nvm\\v14.18.2\\node_modules\\npm\\node_modules\\pacote\\lib\\util\\finished.js:12:19)
27014 verbose stack at ChildProcess.emit (events.js:400:28)
27014 verbose stack at maybeClose (internal/child_process.js:1058:16)
27014 verbose stack at Socket.<anonymous> (internal/child_process.js:443:11)
27014 verbose stack at Socket.emit (events.js:400:28)
27014 verbose stack at Pipe.<anonymous> (net.js:686:12)
27015 verbose cwd E:\\project\\hs-mall\\code\\client\\chuangyue-admin
27016 verbose Windows_NT 10.0.19043
27017 verbose argv "C:\\\\Program Files\\\\nodejs\\\\node.exe" "C:\\\\Program Files\\\\nodejs\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js" "install"
27018 verbose node v14.18.2
27019 verbose npm v6.14.15
27020 error Error while executing:
27020 error C:\\Program Files\\Git\\cmd\\git.EXE ls-remote -h -t git://github.com/adobe-webplatform/eve.git
27020 error
27020 error fatal: unable to connect to github.com:
27020 error github.com[0: 20.205.243.166]: errno=Unknown error
27020 error
27020 error
27020 error exited with error code: 128
27021 verbose exit [ 1, true ]
解决方案
git config --global url."https://".insteadOf git://
然后重新npm install,问题解决。
以上是关于npm install 报错 C:Program FilesGitcmdgit.EXE ls-remote -h -t git://github.com/adobe-webplatform解决的主要内容,如果未能解决你的问题,请参考以下文章
yarn使用报错:无法加载文件 C:Program Files odejs pm.ps1,因为在此系统上禁止运行脚本
npm install 报错(npm ERR! errno 1)