我对我在笔记本电脑上工作的本机项目做出了反应。当我将项目转移到我的电脑并运行 yarn install (我使用 yarn 安装了一些模块,一些使用 npm 安装了一些模块)时,我得到了
发生意外错误:“ https://registry.yarnpkg.com/jest/-/jest-23.0.0-alpha.0.tgz : 请求失败 \“404 Not Found\”“。
我的电脑和笔记本电脑上的纱线版本相同
1.5.1
npm 版本我的电脑和 latop 一样
5.4.1
节点版本
v 7.9.0
此外,在我的项目上运行 yarn install 时我会收到警告
warning You are using Node "7.9.0" which is not supported and may encounter bugs or unexpected behavior. Yarn supports the following semver range: "^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0"
原文由 Manspof 发布,翻译遵循 CC BY-SA 4.0 许可协议
我找到了解决方案