AWS Codebuild 节点版本更新不起作用

问题描述 投票:0回答:3

我在部署网站时遇到错误

Minimum Node version not met :(

You are using Node v12.22.2. We require Node >=14 or up!

尝试使用节点更新命令

buildspec.yaml
更新
npm install -g node
文件,

node.js amazon-web-services version aws-codebuild
3个回答
4
投票

尝试跑步

n 14.18.3

n 软件包预安装在(至少某些)CodeBuild 运行时上,您可以使用它来安装另一个版本并在已安装的版本中进行选择。

详情请看这里。


3
投票

CodeBuild使用的默认AWS linux容器仅支持nodejs版本12.x,因此将其更改为支持node版本14.x的ubuntu镜像

aws/codebuild/standard:5.0

请参阅适用于 Nodejs 的

AWS 可用运行时


0
投票
runtime-versions

里好像有空格,看起来像

runtime - versions
而不是
runtime-versions
,难道只是这个?
    

© www.soinside.com 2019 - 2024. All rights reserved.