角AWS部署问题

时间:2019-09-22 21:09:08

标签: node.js angular aws-lambda

我创建了默认的Angular应用程序,并尝试通过npm run build:serverless:deploy将其部署在aws上。错误如下。知道如何解决吗?我有节点和npm的最新版本。谢谢。

Serverless: Stack create finished...
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading artifacts...
Serverless: Uploading service testp.zip file to S3 (873.96 KB)...
Serverless: Validating template...
Serverless: Updating Stack...
Serverless: Checking Stack update progress...
................
Serverless: Operation failed!
Serverless: View the full error output: https://eu-central- 
   1.console.aws.amazon.com/cloudformation/home?region=eu-central-1#/stack/detail? 
   stackId=arn%3Aaws%3Acloudformation%3Aeu-central-1%3A975506270269%3Astack%2Ftestp- 
   production%2Fa4c76e40-dd7b-11e9-8f46-0649507b8a60

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

  An error occurred: ApiLambdaFunction - 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: 4b39e05c-f633-43d5-a33d- 
   9640d37c572e).

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

  Your Environment Information ---------------------------
     OS:                     darwin
     Node Version:           10.16.3
    Serverless Version:     1.40.0

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! testp@0.0.0 deploy: `serverless deploy`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the testp@0.0.0 deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

0 个答案:

没有答案