阅读:48
npm ERR! code 128
npm ERR! git dep preparation failed
npm ERR! command E:\node.exe C:\Users\92417\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js install --force --cache=C:\Users\92417\AppData\Local\npm-cache --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! npm ERR! code 128
npm ERR! npm ERR! A git connection error occurred
npm ERR! npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/adobe-webplatform/eve.git
npm ERR! npm ERR! kex_exchange_identification: read: Connection reset by peer
npm ERR! npm ERR! Connection reset by 20.205.243.166 port 22
npm ERR! npm ERR! fatal: Could not read from remote repository.
npm ERR! npm ERR!
npm ERR! npm ERR! Please make sure you have the correct access rights
npm ERR! npm ERR! and the repository exists.
npm ERR!
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR! C:\Users\92417\AppData\Local\npm-cache_logs\2022-02-24T08_05_03_956Z-debug.log
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\92417\AppData\Local\npm-cache_logs\2022-02-24T08_05_37_379Z-debug.log
试了淘宝镜像 cnpm yarn 都没用 升级了git版本 也没用
后来使用
git config --global url.“https://”.insteadOf git://
这个好像是强制使用https
然后npm i 好了