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 年前檢視次數 2028 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南