我是我公司的实习生,我只需要在离开之前整理一些东西。我遇到的问题之一是 AWS Cognito,特别是 AWS Amplify CLI。我的笔记本电脑
amplify --version
返回 4.17.1
这是理想的。办公室电脑显示 3.10.0 这远非理想,尤其是当我这样做时
amplify push
弹出以下错误:
Resource Name: UserPoolClientLambda (AWS::Lambda::Function)
Event Type: create
Reason: The runtime parameter of nodejs8.10 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs12.x) while creating or updating functions. (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: f6d965b6-e4a6-4a0e-a380-fc07ac950266)
我试过以下
npm install -g @aws-amplify/cli
我试过了
npm uninstall -g @aws-ampify/cli
然后重启电脑
npm install -g @aws-amplify/cli
与旧的amplify --version
3.10.0 相比没有变化
有人可以在这里帮助我吗?