npm 安装代码 1 错误 git dep 准备失败

时间:2021-07-27 07:41:39

标签: npm

有人在尝试安装 NPM 时遇到以下错误吗?

npm ERR! code 1
npm ERR! git dep preparation failed
npm ERR! command /home/user1/.nvm/versions/node/v15.12.0/bin/node /home/user1/.nvm/versions/node/v15.12.0/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/home/user1/.npm --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 1
npm ERR! npm ERR! The git reference could not be found
npm ERR! npm ERR! command git --no-replace-objects checkout 4.0
npm ERR! npm ERR! error: pathspec '4.0' did not match any file(s) known to git
npm ERR!
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR!     /home/user1/.npm/_logs/2021-07-27T07_22_59_809Z-debug.log

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user1/.npm/_logs/2021-07-27T07_24_31_341Z-debug.log

0 个答案:

没有答案