我在 AppEngine Standard 中部署了 node12 的快速入门,结果与您的相同,当前 Node 的 latest TLS 似乎是:v12.16.3。
我用这个代码打印了版本:
app.get('/', (req, res) => {
res.status(200).send('Hello, world!>>'+process.version).end();
});
结果是:
这也发生在灵活的环境中,我遇到了类似的问题,应该选择最新的主要版本,而不是总是选择较低的版本,但始终选择相同的版本是一致的。这似乎是一种预期行为,但很值得知道原因。
我尝试设置特定版本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.x.x, 12.X.X, 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].
我认为您可以在 Public Issue Tracker 中提出问题,我在 Flexible 中发现 this 类似。此问题可能与 App Engine 的某些内部架构有关。提交问题时,提供尽可能多的信息,并始终进行清理以避免共享敏感信息,例如项目 ID、密码等。