纱线安装抛出错误请求失败“404未找到" [英] yarn install throw error request failed \"404 Not found"

查看:50
本文介绍了纱线安装抛出错误请求失败“404未找到"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我在笔记本电脑上工作的本机项目.当我将项目转移到我的电脑并运行纱线安装时(我使用纱线安装了一些模块,一些使用 npm 安装)我得到

I have react native project that I worked on my laptop. when I transfer the project to my pc and run yarn install (I installed the some modules using yarn and some using npm) I get

发生意外错误:"https://registry.yarnpkg.com/jest/-/jest-23.0.0-alpha.0.tgz:请求失败\404 Not Found\"".

An unexpected error occurred: "https://registry.yarnpkg.com/jest/-/jest-23.0.0-alpha.0.tgz: Request failed \"404 Not Found\"".

我的电脑和笔记本电脑上的纱线版本相同

Yarn version on my pc and latop same

1.5.1

npm 版本我的电脑和笔记本电脑一样

npm version my pc and latop same

5.4.1

节点版本

v 7.9.0

此外,我在我的项目上运行 yarn install 时收到警告

in addition i get warning when run yarn install on my project

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"

推荐答案

我找到了解决方案

yarn config set registry https://registry.npmjs.org
rm yarn.lock
yarn

这篇关于纱线安装抛出错误请求失败“404未找到"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆