Setting minor version of elastic beanstalk node.js platform

0

These docs: https://docs.aws.amazon.com/elasticbeanstalk/latest/platforms/platform-history-nodejs.html note the different minor versions of node.js that are available for a given platform version (like Node.js 12 AL2 version 5.4.8). How do you set the minor version you will be using (like v12.20.2?)

thanks!

dover
질문됨 2년 전652회 조회
1개 답변
1
수락된 답변

Each Node.js platform version supports a few Node.js language versions. Valid Node.js versions, as well as the default version. Each Node.js version includes a respective version of npm (the Node.js package manager).

On Amazon Linux 2 platform versions, only the default Node.js version is pre-installed. You can use a package.json file in the root of your project source to specify the Node.js version you want your application to use. Refer to https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/nodejs-platform-packagejson.html

On Amazon Linux AMI platform versions (preceding Amazon Linux 2), all listed Node.js versions that a platform version supports are pre-installed on it. The default Node.js version applies when the NodeVersion option in the aws:elasticbeanstalk:container:nodejs namespace isn't set. Refer to https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-specific.html#command-options-nodejs

Further info and especially some gotchas are called out at https://docs.aws.amazon.com/elasticbeanstalk/latest/platforms/platforms-supported.html#platforms-supported.nodejs

RoB
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠