【问题标题】:How to use Google Cloud Build with Yarn 2+如何使用带有 Yarn 2+ 的 Google Cloud Build
【发布时间】:2023-01-31 05:56:52
【问题描述】:

如何将 Google Cloud Build 与 Yarn 2+ 一起使用?我是否需要创建自己的节点图像来支持它,或者是否有一些简写的入口点,如 entrypoint: "yarn2"

使用 NodeJs 进行云构建:

steps:
  - name: "node"
    entrypoint: "yarn"

当前结果:

Step #0: Pulling image: node
Step #0: Using default tag: latest
...
Step #0: yarn run v1.22.19

【问题讨论】:

  • 您是否检查过 feature requestGithub issue link,其中建议使用 Yarn 2 的 PnP 模式,因为 Cloud Build 尚未完全支持 Yarn 2?
  • 我明白了,我一定是错过了某个地方尚未正式支持 Yarn2 的信息。如果他们将其包含在他们的 Cloud Build 文档中,那就太好了。

标签: node.js yarnpkg google-cloud-build yarnpkg-v2


【解决方案1】:

作为社区 wiki 发布,根据之前的评论,Google Cloud Build 尚未完全支持 Yarn 2。建议根据Google Cloud feature requestGithub issue link 中发布的这些文档使用 Yarn 2 的 PnP 模式。

【讨论】:

    猜你喜欢
    • 2021-02-01
    • 1970-01-01
    • 2021-01-20
    • 1970-01-01
    • 2019-12-02
    • 2019-12-02
    • 1970-01-01
    • 2017-08-01
    • 2021-03-27
    相关资源
    最近更新 更多