【问题标题】:How can I see the `yarn install` log when deploy node app to gcp cloudfunction将节点应用程序部署到 gcp cloudfunction 时如何查看 `yarn install` 日志
【发布时间】:2021-09-08 13:03:12
【问题描述】:

我已经阅读了这个文档https://cloud.google.com/functions/docs/writing/specifying-dependencies-nodejs,上面写着The Cloud Functions Node.js runtimes generally support installing using npm or yarn.。当我将函数部署到 GCP 时,我希望 cloud function 会执行 yarn install

在哪里可以找到yarn install的日志?

我如何知道它使用的是yarnnpm 的哪个版本?

【问题讨论】:

    标签: node.js google-cloud-platform google-cloud-functions


    【解决方案1】:

    当您部署云功能(或应用程序引擎服务,这是同一件事)时,会触发云构建以根据您的代码构建容器(感谢 BuildPack 自动检测您的语言和相应的层来构建容器)。

    当然,除了 Cloud Builds 中的日志,您什么也看不到。查看构建历史记录和每个日志以查看容器构建和步骤状态。 你可以查看 yarn 版本,我没用过,无法确认

    【讨论】:

      猜你喜欢
      • 2020-12-22
      • 2015-10-20
      • 1970-01-01
      • 2016-04-09
      • 2019-11-08
      • 2019-09-08
      • 1970-01-01
      • 2020-02-23
      • 1970-01-01
      相关资源
      最近更新 更多