serverless.yml 中的运行时变量未设置节点版本

Runtime variable in serverless.yml isn't setting node version

我 运行 在 aws 上使用 lambda 函数并使用无服务器进行部署。将节点从 6.10 更新到 10.16,我用 n 更新了 nodejs,并将 serverless.yml 文件中的 "runtime" 行更改为:

provider:
  name: aws
  runtime: nodejs10.16
  stage: prod
  region: us-west-2

当我使用无服务器进行部署时,我收到以下消息:

Serverless Error ---------------------------------------

  An error occurred: GetLaunchEventListLambdaFunction - The runtime 
parameter of nodejs6.10 is no longer supported for creating or updating 
AWS Lambda functions. We recommend you use the new runtime 
(nodejs10.x) while creating or updating functions. (Service: 
AWSLambdaInternal; >Status code: 400; Error Code: 
InvalidParameterValueException; Request >ID: abc26ccc-9289-431f-abd6- 
61a73bdb4c2e).

  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com

  Your Environment Information -----------------------------
     OS:                     linux
     Node Version:           6.10.3
     Serverless Version:     1.27.3

我错过了什么?

正确的语法应该是 runtime: nodejs10.x 但我来到这里是因为即使使用(我认为是)正确的语法我也有同样的问题。