我对 AWS CodeBuild 有一个令人困惑的问题。我收到以下错误:
Major version of alias '14.x' is not supported in runtime 'nodejs'
Run Code Online (Sandbox Code Playgroud)
当我将构建规范更新为“14”时,我得到了有关错误的更多信息:
Message: Unknown runtime version named '14' of nodejs. This build image has the following versions: 10, 12
Run Code Online (Sandbox Code Playgroud)
我们已经使用这个 CodeBuild 项目很长时间了,使用的是 12.x,现在需要更新到 14.x。我们更新了构建规范如下:
version: 0.2
phases:
install:
runtime-versions:
nodejs: 14.x
build:
commands:
- "npm i"
- "npm run build"
- "npm run db:migrate"
artifacts:
files:
- "all"
- "of"
- "our"
- "files"
Run Code Online (Sandbox Code Playgroud)
此外,我们的 CodeBuild 已采用最新版本的 CodeBuild 映像。我什至重新构建了 CodeBuild 项目,以确保它是最新的并且仍然存在相同的问题:
aws/codebuild/amazonlinux2-x86_64-standard:3.0
预先感谢您的任何建议。