设置Elastic Beanstalk Node.js平台的小版本号。

0

【以下的问题经过翻译处理】 这些文档:https://docs.aws.amazon.com/elasticbeanstalk/latest/platforms/platform-history-nodejs.html 请注意可用于给定平台版本(如 Node.js 12 AL2 版本 5.4.8)的 node.js 的不同次要版本。你如何设置将使用的次要版本(比如 v12.20.2?)

谢谢!

profile picture
전문가
질문됨 5달 전30회 조회
1개 답변
0

【以下的回答经过翻译处理】 每个Node.js平台版本都支持几个Node.js语言版本。有效的Node.js版本,以及默认版本。每个Node.js版本都包括相应版本的npm(Node.js包管理器)。

在Amazon Linux 2平台版本上,只有默认的Node.js版本预安装。您可以在项目源的根目录中使用package.json文件来指定您希望应用程序使用的Node.js版本。请参阅https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/nodejs-platform-packagejson.html

在Amazon Linux AMI平台版本(在Amazon Linux 2之前),所有列出的平台版本支持的Node.js版本都预先安装在其中。当aws:elasticbeanstalk:container:nodejs命名空间中的NodeVersion选项未设置时,默认Node.js版本适用。请参阅https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-specific.html#command-options-nodejs

更多信息,特别是一些要注意的问题,请查看https://docs.aws.amazon.com/elasticbeanstalk/latest/platforms/platforms-supported.html#platforms-supported.nodejs

profile picture
전문가
답변함 5달 전

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

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

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

관련 콘텐츠