报错信息如下

......
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,问题解决。

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐