简体   繁体   English

Google App Engine 标准上的 Nodejs 版本

[英]Nodejs version on Google App Engine standard

Googles docs indicate they support the latest LTS of Nodejs, and that they support the latest version of the specified version. Google 的文档表明他们支持 Nodejs 的最新 LTS,并且他们支持指定版本的最新版本。

https://cloud.google.com/appengine/docs/standard/nodejs/runtime https://cloud.google.com/appengine/docs/standard/nodejs/runtime

it uses the latest stable release of the version you choose.

Currently, NodeJS is on 14 for LTS, and 12.18.4 for version 12. However, App Engine Standard appears to be stuck on 12.16.3 as it's latest version.目前,NodeJS 的 LTS 版本为 14,版本 12 的版本为 12.18.4。但是,App Engine Standard 似乎停留在 12.16.3 上,因为它是最新版本。

Is there any indication of their release cadence?是否有任何迹象表明他们的发布节奏? When can we expect an upgrade?我们什么时候可以期待升级?

Motivation: I'm trying to setup a typescript monorepo with published packages & App engine.动机:我正在尝试使用已发布的包和应用程序引擎设置 typescript monorepo。 This relies package.json specifying "exports" field, but 12.16 seems not to support it, even behind the --experimental-exports tag.这依赖于 package.json 指定“exports”字段,但 12.16 似乎不支持它,即使在--experimental-exports标签后面也是如此。

I have deployed a quickstart with node12 in AppEngine Standard and had the sames results than yours, the current latest TLS for Node seems to be: v12.16.3 .我在 AppEngine Standard 中部署了 node12 的快速入门,结果与您的相同,当前latest的 Node TLS 似乎是: v12.16.3

I printed the version with this code:我用以下代码打印了版本:

app.get('/', (req, res) => {
  res.status(200).send('Hello, world!>>'+process.version).end();
});

The result was:结果是:

在此处输入图像描述

This is happening also in the Flexible environment, I faced a similar issue in which is supposed to pick the latest major version, instead always pick a lower, but it is consistent on picking always the same.这也发生在灵活的环境中,我遇到了类似的问题,应该选择最新的主要版本,而不是总是选择较低的版本,但始终选择相同的版本是一致的。 This seems to be a expected behavior, but it is well worth to know the reason.这似乎是一种预期的行为,但很值得知道原因。

I tried setting the specific version 12.18.4 but with no success.我尝试设置特定版本12.18.4但没有成功。

**ERROR**: (gcloud.app.deploy) INVALID_ARGUMENT: The 'package.json' configuration file must specify a supported nodejs12 version that is compatible with the runtime specified in the deployment. Please pin your application to a compatible major version of the runtime via the 'engines.node' property. Supported 'engines.node' values for the runtime 'nodejs12' are: [12.xx, 12.XX, 12.x, 12.X, 12.*.*, 12.*, ~12, ~12.0, ~12.0.0, 12, ^12, ^12.0, ^12.0.0, >=12, >=12.0, >=12.0.0, >12.0, >12.0.0, >=1, >=1.0, >=1.0.0, >1, >1.0, >1.0.0, >=2, >=2.0, >=2.0.0, >2, >2.0, >2.0.0, >=3, >=3.0, >=3.0.0, >3, >3.0, >3.0.0, >=4, >=4.0, >=4.0.0, >4, >4.0, >4.0.0, >=5, >=5.0, >=5.0.0, >5, >5.0, >5.0.0, >=6, >=6.0, >=6.0.0, >6, >6.0, >6.0.0, >=7, >=7.0, >=7.0.0, >7, >7.0, >7.0.0, >=8, >=8.0, >=8.0.0, >8, >8.0, >8.0.0, >=9, >=9.0, >=9.0.0, >9, >9.0, >9.0.0, >=10, >=10.0, >=10.0.0, >10, >10.0, >10.0.0, >=11, >=11.0, >=11.0.0, >11, >11.0, >11.0.0].

I think you can file an issue in the Public Issue Tracker , I found this similar in Flexible.我认为您可以在Public Issue Tracker中提出问题,我在 Flexible 中发现类似的情况。 This issue could be related to some internal stuff architecture of App Engine.这个问题可能与 App Engine 的一些内部架构有关。 When filing the issue, provide as much information as possible, always sanitizing to avoid sharing sensitive information, such as project ID, passwords, etc.提交问题时,提供尽可能多的信息,始终进行清理以避免共享敏感信息,例如项目 ID、密码等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM