我在部署网站时遇到错误
Minimum Node version not met :( You are using Node v12.22.2. We require Node >=14 or up!
尝试使用节点更新命令
buildspec.yaml
npm install -g node
尝试跑步
n 14.18.3
n 软件包预安装在(至少某些)CodeBuild 运行时上,您可以使用它来安装另一个版本并在已安装的版本中进行选择。
详情请看这里。
CodeBuild使用的默认AWS linux容器仅支持nodejs版本12.x,因此将其更改为支持node版本14.x的ubuntu镜像
aws/codebuild/standard:5.0
AWS 可用运行时
runtime-versions
里好像有空格,看起来像
runtime - versions