我安装了最新的节点:
node --version
v14.15.0
我从https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install-windows.html安装了 sam-cli
然后我运行以下命令 npm install -g aws-sam-local
当我运行时:
sam --version
我得到以下信息:
A newer version of the AWS SAM CLI is available!
Your version: 0.2.11
Latest version: 1.9.0
See https://github.com/awslabs/aws-sam-local for upgrade instructions
我正在尝试在本地调用 aws lambda 函数,如下所示:
sam local invoke
我得到以下输出:
2020/11/11 22:24:18 Successfully parsed template.yml
2020/11/11 22:24:18 Connected to Docker 1.40
2020/11/11 22:24:18 Could not initiate nodejs14.15 runtime: unsupported runtime
我错过了什么?