【发布时间】:2018-08-28 11:53:21
【问题描述】:
我对我在笔记本电脑上工作的本机项目做出了反应。当我将项目转移到我的电脑并运行 yarn install 时(我使用 yarn 安装了一些模块,而一些使用 npm 安装了)我得到了
发生意外错误:“https://registry.yarnpkg.com/jest/-/jest-23.0.0-alpha.0.tgz: Request failed \"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"
【问题讨论】:
-
您的笔记本电脑上的节点版本是多少?首先你应该在你的电脑上更新它。顺便说一句,你能用 jest 显示 packages.json 中的行吗?
-
我找到了解决方案,我发布了我的答案
标签: node.js react-native npm yarnpkg