reactjs - 当我尝试在项目目录中运行 npm install 命令时出现这些 NPM 错误

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

回答1

这是解决方案。

在终端上,移动到您的项目路线。

git remote update

git fetch

原因是你的分支没有更新!

我想解决你的问题。

相似文章

随机推荐

最新文章