纱线安装在github动作上失败

发布于 2025-01-30 02:57:18 字数 522 浏览 4 评论 0 原文

我们有一个基于纱线的MonorePo,其中包含最新的纱线版本3.2.0。我们正在获得纱线安装在我们的github工作流程上具有零调试日志的故障:

Run yarn install
➤ YN0000: ┌ Resolution step
Resolution step
➤ YN0000: └ Completed in 1s

➤ YN0000: ┌ Post-resolution validation
Post-resolution validation
➤ YN0000: └ Completed in 0s 226ms
➤ YN0000: Failed with errors in 1s 236ms

当我们的大多数团队生成 yarn.lock 文件时,这种情况就会发生,除了一个团队成员能够生成在工作流中工作的工作 Yarn.lock 。奇怪的部分是他正在运行与大多数其他开发人员(MBP,节点16)非常相似的设置。

知道什么会导致这一点,以及我们如何找到更多信息?

We have a Yarn-based monorepo with the latest Yarn version 3.2.0. We are getting yarn install failures with zero debug logs on our GitHub Workflow:

Run yarn install
➤ YN0000: ┌ Resolution step
Resolution step
➤ YN0000: └ Completed in 1s

➤ YN0000: ┌ Post-resolution validation
Post-resolution validation
➤ YN0000: └ Completed in 0s 226ms
➤ YN0000: Failed with errors in 1s 236ms

This happens when most of our team generates the yarn.lock file, except one team member is able to generate a working yarn.lock that works in the Workflow. The strange part is he is running a very similar setup to most other devs (MBP, Node 16).

Any idea what could be causing this and how we can find out more information?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

站稳脚跟 2025-02-06 02:57:18

默认情况下,YARN将 YARN INSTALS 上抛出异常软件包与存储在LockFile中的校验和不匹配。修复:

  1. 打开 .yarnrc.yml
  2. 添加以下配置选项:

CheckumBehavior:“ Update”

By default, Yarn will throw an exception on yarn install if it detects that a package doesn't match the checksum stored within the lockfile. To fix:

  1. Open your .yarnrc.yml.
  2. Add the following configuration option:

checksumBehavior: "update"

阳光的暖冬 2025-02-06 02:57:18

要解决此问题,请将纱线升级到版本 3.2.4 或更高版本。

背景:

导致校验和检查失败 - 升级将解决此问题。

To resolve this issue, upgrade Yarn to version 3.2.4 or later.

Background:

There were a couple of issues in older versions of Yarn 3 that caused the checksum check to fail — upgrading will resolve this issue.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文