Yarn install 报错 Resolving packages... [2/4] Fetching packages... info There appears to be trouble wi

简介: Yarn install 报错 Resolving packages... [2/4] Fetching packages... info There appears to be trouble wi

Yarn install时报错

[1/4] Resolving packages…

[2/4] Fetching packages…

到这里就执行不动了,提示网络出错,请重试。。。。

百度搜到的解决方法:

调整为淘宝镜像

# 调整为taobao镜像源
 yarn config set registry https://registry.npm.taobao.org

一般情况下切换为淘宝镜像就可以了,但是我这里还不行。

试过之后还是不管用,

寻找了一系列解决办法后,最终解决办法如下:

最终解决办法

删除运行目录下的 yarn.lock 文件

最终有效的解决方案:删除 yarn.lock 文件,重新执行 yarn install,成功了。

目录
相关文章
|
6月前
|
资源调度 JavaScript Windows
yarn install命令报错解决办法-warning package-lock.json found.
yarn install命令报错解决办法-warning package-lock.json found.
108 0
|
6月前
|
资源调度
yarn出现 There are no scenarios ; must have at least one
yarn出现 There are no scenarios ; must have at least one
|
7月前
|
缓存 资源调度 内存技术
yarn报错文件名、目录名或卷标语法不正确
yarn报错文件名、目录名或卷标语法不正确
95 0
|
7月前
|
资源调度 Java 流计算
flink yarn-per-job提交报错
flink yarn-per-job提交这个是什么问题吗,主机端口都是正常的,就报了拒绝连接?image.png 一提交到yarn就报这个错,然后失败,提交命令 flink run -t yarn-per-job -c app.dwm.UVFilterDetail /root/gmall_flink/flink_app/gmall-start-try-self-do-1.0-SNAPSHOT-jar-with-dependencies.jar,yarn-session提交是正常的,就per-job有问题?
61 1
|
6月前
|
资源调度 JavaScript Windows
yarn install命令运行报错:无法将“yarn”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。...
yarn install命令运行报错:无法将“yarn”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。...
434 1
yarn install命令运行报错:无法将“yarn”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。...
|
3月前
|
分布式计算 资源调度 Hadoop
Flink报错问题之yarn报错如何解决
Apache Flink是由Apache软件基金会开发的开源流处理框架,其核心是用Java和Scala编写的分布式流数据流引擎。本合集提供有关Apache Flink相关技术、使用技巧和最佳实践的资源。
|
5月前
|
资源调度 前端开发
npm/yarn link 测试包时报错 Warning: Invalid hook call. Hooks can only be called ...
npm/yarn link 测试包时报错 Warning: Invalid hook call. Hooks can only be called ...
40 0
|
8月前
|
分布式计算 资源调度 监控
Hadoop学习笔记(四)之YARN
Hadoop学习笔记(四)之YARN
|
9月前
|
分布式计算 资源调度 Hadoop
Flink安装部署{单机模式、会话模式(集群部署)、yarn模式(包含hadoop3.1.3部署)}
Flink安装部署{单机模式、会话模式(集群部署)、yarn模式(包含hadoop3.1.3部署)}
309 0
|
29天前
|
分布式计算 资源调度 Hadoop
Hadoop【基础知识 03+04】【Hadoop集群资源管理器yarn】(图片来源于网络)(hadoop fs + hadoop dfs + hdfs dfs 使用举例)
【4月更文挑战第5天】Hadoop【基础知识 03】【Hadoop集群资源管理器yarn】(图片来源于网络)Hadoop【基础知识 04】【HDFS常用shell命令】(hadoop fs + hadoop dfs + hdfs dfs 使用举例)
54 9