NodeJS Elasticbeanstalk Worker environment fails with `You didn't specify a Node.js version in the 'package.json'`

0

When creating a new Worker Elasticbeanstalk environment with a Sample code bundle I face You didn't specify a Node.js version in the 'package.json' everytime. WebServer environment works fine though. Must be something with Sample code itself.

已提问 2 年前2030 查看次数
1 回答
0

Do you have a package.json as part of the sample code?

If no create the file similar to below

{
    "engines": { "node" : "14.16.0" }
}

If yes does it contain an engine reference similar to above?

RoB
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则