Adi*_*ari 5 node.js npm react-native yarnpkg
我已经对我在笔记本电脑上工作的本地项目做出了反应。当我将项目转移到我的PC并运行yarn安装时(我使用yarn安装了一些模块,使用npm安装了一些模块)
发生意外错误:“ https://registry.yarnpkg.com/jest/-/jest-23.0.0-alpha.0.tgz:请求失败“找不到404”。
我的PC和Latop上的纱线版本相同
1.5.1
Run Code Online (Sandbox Code Playgroud)
NPM版本我的电脑和笔记本电脑相同
5.4.1
Run Code Online (Sandbox Code Playgroud)
节点版本
v 7.9.0
Run Code Online (Sandbox Code Playgroud)
另外,在我的项目上运行yarn安装时,我会收到警告
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"
Run Code Online (Sandbox Code Playgroud)
Adi*_*ari 15
我找到了解决方案
yarn config set registry https://registry.npmjs.org
rm yarn.lock
yarn
Run Code Online (Sandbox Code Playgroud)