git dep preparation failed

发布时间 2023-07-07 11:23:27作者: wangjin_1
npm ERR! code 128
npm ERR! git dep preparation failed
npm ERR! command E:\software\node-v16.20.0-win-x64\node.exe E:\software\node-v16.20.0-win-x64\node_modules\npm\bin\npm-cli.js install --force --cache=E:\software\node-v16.20.0-win-x64\node_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! An unknown git 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! ssh: connect to host github.com port 22: Connection refused
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!     E:\software\node-v16.20.0-win-x64\node_cache\_logs\2023-07-07T02_57_13_379Z-debug-0.log

npm ERR! A complete log of this run can be found in:
npm ERR!     E:\software\node-v16.20.0-win-x64\node_cache\_logs\2023-07-07T02_55_58_571Z-debug-0.log

 

借鉴:

 https://segmentfault.com/q/1010000040920353