amplify-cli: runtime parameter of nodejs8.10 is no longer supported
Describe the bug Cannot add auth because
CREATE_FAILED UpdateRolesWithIDPFunction AWS::Lambda::Function Wed Jan 08 2020 23:21:44 GMT+0000 (Western European Standard Time) 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: 65a212db-26d5-4e62-8b0b-b75e3ed27496)
I changed once the parameter in amplify/backend/auth/cforeports89a5c9ae/cforeports89a5c9ae-cloudformation-template.yml
Runtime: nodejs12.x
However, this didn’t help, somewhere else the previous version of node is kept in the settings
Amplify CLI Version 3.17.0
To Reproduce Steps to reproduce the behavior or terminal output if applicable
Vladislavs-Air:cfo vladislavsorokin$ amplify init
Note: It is recommended to run this command from the root of your app directory
? Enter a name for the project CFOReports
? Enter a name for the environment js
? Choose your default editor: Visual Studio Code
? Choose the type of app that you're building javascript
Please tell us about your project
? What javascript framework are you using react
? Source Directory Path: src
? Distribution Directory Path: build
? Build Command: yarn build
? Start Command: yarn start
Using default provider awscloudformation
For more information on AWS Profiles, see:
https://docs.aws.amazon.com/cli/latest/userguide/cli-multiple-profiles.html
? Do you want to use an AWS profile? Yes
? Please choose the profile you want to use CFO
⠹ Initializing project in the cloud...
CREATE_IN_PROGRESS DeploymentBucket AWS::S3::Bucket Wed Jan 08 2020 23:15:57 GMT+0000 (Western European Standard Time) Resource creation Initiated
CREATE_IN_PROGRESS AuthRole AWS::IAM::Role Wed Jan 08 2020 23:15:57 GMT+0000 (Western European Standard Time) Resource creation Initiated
CREATE_IN_PROGRESS UnauthRole AWS::IAM::Role Wed Jan 08 2020 23:15:57 GMT+0000 (Western European Standard Time) Resource creation Initiated
CREATE_IN_PROGRESS AuthRole AWS::IAM::Role Wed Jan 08 2020 23:15:56 GMT+0000 (Western European Standard Time)
CREATE_IN_PROGRESS UnauthRole AWS::IAM::Role Wed Jan 08 2020 23:15:56 GMT+0000 (Western European Standard Time)
CREATE_IN_PROGRESS DeploymentBucket AWS::S3::Bucket Wed Jan 08 2020 23:15:56 GMT+0000 (Western European Standard Time)
CREATE_IN_PROGRESS amplify-cforeports-js-231552 AWS::CloudFormation::Stack Wed Jan 08 2020 23:15:53 GMT+0000 (Western European Standard Time) User Initiated
⠹ Initializing project in the cloud...
CREATE_COMPLETE AuthRole AWS::IAM::Role Wed Jan 08 2020 23:16:12 GMT+0000 (Western European Standard Time)
CREATE_COMPLETE UnauthRole AWS::IAM::Role Wed Jan 08 2020 23:16:12 GMT+0000 (Western European Standard Time)
⠸ Initializing project in the cloud...
CREATE_COMPLETE DeploymentBucket AWS::S3::Bucket Wed Jan 08 2020 23:16:18 GMT+0000 (Western European Standard Time)
⠹ Initializing project in the cloud...
CREATE_COMPLETE amplify-cforeports-js-231552 AWS::CloudFormation::Stack Wed Jan 08 2020 23:16:20 GMT+0000 (Western European Standard Time)
✔ Successfully created initial AWS cloud resources for deployments.
✔ Initialized provider successfully.
Initialized your environment successfully.
Your project has been successfully initialized and connected to the cloud!
Some next steps:
"amplify status" will show you what you've added already and if it's locally configured or deployed
"amplify <category> add" will allow you to add features like user login or a backend API
"amplify push" will build all your local backend resources and provision it in the cloud
"amplify publish" will build all your local backend and frontend resources (if you have hosting category added) and provision it in the cloud
Pro tip:
Try "amplify add api" to create a backend API and then "amplify publish" to deploy everything
Vladislavs-Air:cfo vladislavsorokin$ amplify add auth
Using service: Cognito, provided by: awscloudformation
The current configured provider is Amazon Cognito.
Do you want to use the default authentication and security configuration? Default configuration
Warning: you will not be able to edit these selections.
How do you want users to be able to sign in? Email
Do you want to configure advanced settings? No, I am done.
Successfully added resource cforeports89a5c9ae locally
Some next steps:
"amplify push" will build all your local backend resources and provision it in the cloud
"amplify publish" will build all your local backend and frontend resources (if you have hosting category added) and provision it in the cloud
Vladislavs-Air:cfo vladislavsorokin$ amplify push
Current Environment: js
| Category | Resource name | Operation | Provider plugin |
| -------- | ------------------ | --------- | ----------------- |
| Auth | cforeports89a5c9ae | Create | awscloudformation |
? Are you sure you want to continue? Yes
⠸ Updating resources in the cloud. This may take a few minutes...
CREATE_IN_PROGRESS authcforeports89a5c9ae AWS::CloudFormation::Stack Wed Jan 08 2020 23:19:40 GMT+0000 (Western European Standard Time) Resource creation Initiated
CREATE_IN_PROGRESS UpdateRolesWithIDPFunctionRole AWS::IAM::Role Wed Jan 08 2020 23:19:40 GMT+0000 (Western European Standard Time) Resource creation Initiated
CREATE_IN_PROGRESS authcforeports89a5c9ae AWS::CloudFormation::Stack Wed Jan 08 2020 23:19:39 GMT+0000 (Western European Standard Time)
CREATE_IN_PROGRESS UpdateRolesWithIDPFunctionRole AWS::IAM::Role Wed Jan 08 2020 23:19:39 GMT+0000 (Western European Standard Time)
UPDATE_IN_PROGRESS amplify-cforeports-js-231552 AWS::CloudFormation::Stack Wed Jan 08 2020 23:19:35 GMT+0000 (Western European Standard Time) User Initiated
⠦ Updating resources in the cloud. This may take a few minutes...
CREATE_IN_PROGRESS amplify-cforeports-js-231552-authcforeports89a5c9ae-WMNJK13CT92M AWS::CloudFormation::Stack Wed Jan 08 2020 23:19:40 GMT+0000 (Western European Standard Time) User Initiated
⠋ Updating resources in the cloud. This may take a few minutes...
CREATE_IN_PROGRESS SNSRole AWS::IAM::Role Wed Jan 08 2020 23:19:46 GMT+0000 (Western European Standard Time)
⠦ Updating resources in the cloud. This may take a few minutes...
CREATE_IN_PROGRESS SNSRole AWS::IAM::Role Wed Jan 08 2020 23:19:46 GMT+0000 (Western European Standard Time) Resource creation Initiated
⠼ Updating resources in the cloud. This may take a few minutes...
CREATE_COMPLETE UpdateRolesWithIDPFunctionRole AWS::IAM::Role Wed Jan 08 2020 23:19:56 GMT+0000 (Western European Standard Time)
⠇ Updating resources in the cloud. This may take a few minutes...
CREATE_COMPLETE SNSRole AWS::IAM::Role Wed Jan 08 2020 23:20:03 GMT+0000 (Western European Standard Time)
⠧ Updating resources in the cloud. This may take a few minutes...
CREATE_COMPLETE UserPool AWS::Cognito::UserPool Wed Jan 08 2020 23:20:09 GMT+0000 (Western European Standard Time)
CREATE_IN_PROGRESS UserPool AWS::Cognito::UserPool Wed Jan 08 2020 23:20:09 GMT+0000 (Western European Standard Time) Resource creation Initiated
CREATE_IN_PROGRESS UserPool AWS::Cognito::UserPool Wed Jan 08 2020 23:20:07 GMT+0000 (Western European Standard Time)
⠇ Updating resources in the cloud. This may take a few minutes...
CREATE_COMPLETE UserPoolClient AWS::Cognito::UserPoolClient Wed Jan 08 2020 23:20:14 GMT+0000 (Western European Standard Time)
CREATE_COMPLETE UserPoolClientWeb AWS::Cognito::UserPoolClient Wed Jan 08 2020 23:20:14 GMT+0000 (Western European Standard Time)
CREATE_IN_PROGRESS UserPoolClient AWS::Cognito::UserPoolClient Wed Jan 08 2020 23:20:14 GMT+0000 (Western European Standard Time) Resource creation Initiated
CREATE_IN_PROGRESS UserPoolClientWeb AWS::Cognito::UserPoolClient Wed Jan 08 2020 23:20:14 GMT+0000 (Western European Standard Time) Resource creation Initiated
CREATE_IN_PROGRESS UserPoolClient AWS::Cognito::UserPoolClient Wed Jan 08 2020 23:20:12 GMT+0000 (Western European Standard Time)
CREATE_IN_PROGRESS UserPoolClientWeb AWS::Cognito::UserPoolClient Wed Jan 08 2020 23:20:12 GMT+0000 (Western European Standard Time)
⠇ Updating resources in the cloud. This may take a few minutes...
CREATE_IN_PROGRESS UserPoolClientRole AWS::IAM::Role Wed Jan 08 2020 23:20:18 GMT+0000 (Western European Standard Time) Resource creation Initiated
CREATE_IN_PROGRESS UserPoolClientRole AWS::IAM::Role Wed Jan 08 2020 23:20:17 GMT+0000 (Western European Standard Time)
⠏ Updating resources in the cloud. This may take a few minutes...
CREATE_COMPLETE UserPoolClientRole AWS::IAM::Role Wed Jan 08 2020 23:20:33 GMT+0000 (Western European Standard Time)
⠋ Updating resources in the cloud. This may take a few minutes...
CREATE_COMPLETE UserPoolClientLambda AWS::Lambda::Function Wed Jan 08 2020 23:20:38 GMT+0000 (Western European Standard Time)
CREATE_IN_PROGRESS UserPoolClientLambda AWS::Lambda::Function Wed Jan 08 2020 23:20:37 GMT+0000 (Western European Standard Time) Resource creation Initiated
CREATE_IN_PROGRESS UserPoolClientLambda AWS::Lambda::Function Wed Jan 08 2020 23:20:37 GMT+0000 (Western European Standard Time)
⠙ Updating resources in the cloud. This may take a few minutes...
CREATE_IN_PROGRESS UserPoolClientLambdaPolicy AWS::IAM::Policy Wed Jan 08 2020 23:20:42 GMT+0000 (Western European Standard Time) Resource creation Initiated
CREATE_IN_PROGRESS UserPoolClientLambdaPolicy AWS::IAM::Policy Wed Jan 08 2020 23:20:41 GMT+0000 (Western European Standard Time)
⠇ Updating resources in the cloud. This may take a few minutes...
CREATE_COMPLETE UserPoolClientLambdaPolicy AWS::IAM::Policy Wed Jan 08 2020 23:20:56 GMT+0000 (Western European Standard Time)
⠙ Updating resources in the cloud. This may take a few minutes...
CREATE_IN_PROGRESS UserPoolClientLogPolicy AWS::IAM::Policy Wed Jan 08 2020 23:21:00 GMT+0000 (Western European Standard Time) Resource creation Initiated
CREATE_IN_PROGRESS UserPoolClientLogPolicy AWS::IAM::Policy Wed Jan 08 2020 23:20:59 GMT+0000 (Western European Standard Time)
⠸ Updating resources in the cloud. This may take a few minutes...
CREATE_COMPLETE UserPoolClientLogPolicy AWS::IAM::Policy Wed Jan 08 2020 23:21:14 GMT+0000 (Western European Standard Time)
⠼ Updating resources in the cloud. This may take a few minutes...
CREATE_COMPLETE UserPoolClientInputs Custom::LambdaCallout Wed Jan 08 2020 23:21:20 GMT+0000 (Western European Standard Time)
CREATE_IN_PROGRESS UserPoolClientInputs Custom::LambdaCallout Wed Jan 08 2020 23:21:20 GMT+0000 (Western European Standard Time) Resource creation Initiated
CREATE_IN_PROGRESS UserPoolClientInputs Custom::LambdaCallout Wed Jan 08 2020 23:21:18 GMT+0000 (Western European Standard Time)
⠼ Updating resources in the cloud. This may take a few minutes...
CREATE_IN_PROGRESS IdentityPool AWS::Cognito::IdentityPool Wed Jan 08 2020 23:21:25 GMT+0000 (Western European Standard Time) Resource creation Initiated
CREATE_IN_PROGRESS IdentityPool AWS::Cognito::IdentityPool Wed Jan 08 2020 23:21:23 GMT+0000 (Western European Standard Time)
⠏ Updating resources in the cloud. This may take a few minutes...
CREATE_COMPLETE IdentityPool AWS::Cognito::IdentityPool Wed Jan 08 2020 23:21:26 GMT+0000 (Western European Standard Time)
⠴ Updating resources in the cloud. This may take a few minutes...
CREATE_COMPLETE IdentityPoolRoleMap AWS::Cognito::IdentityPoolRoleAttachment Wed Jan 08 2020 23:21:30 GMT+0000 (Western European Standard Time)
CREATE_IN_PROGRESS IdentityPoolRoleMap AWS::Cognito::IdentityPoolRoleAttachment Wed Jan 08 2020 23:21:30 GMT+0000 (Western European Standard Time) Resource creation Initiated
CREATE_IN_PROGRESS IdentityPoolRoleMap AWS::Cognito::IdentityPoolRoleAttachment Wed Jan 08 2020 23:21:28 GMT+0000 (Western European Standard Time)
⠙ Updating resources in the cloud. This may take a few minutes...
CREATE_COMPLETE authcforeports89a5c9ae AWS::CloudFormation::Stack Wed Jan 08 2020 23:21:34 GMT+0000 (Western European Standard Time)
⠹ Updating resources in the cloud. This may take a few minutes...
CREATE_IN_PROGRESS UpdateRolesWithIDPFunction AWS::Lambda::Function Wed Jan 08 2020 23:21:37 GMT+0000 (Western European Standard Time)
⠹ Updating resources in the cloud. This may take a few minutes...
UPDATE_ROLLBACK_IN_PROGRESS amplify-cforeports-js-231552 AWS::CloudFormation::Stack Wed Jan 08 2020 23:21:45 GMT+0000 (Western European Standard Time) The following resource(s) failed to create: [UpdateRolesWithIDPFunction].
CREATE_FAILED UpdateRolesWithIDPFunction AWS::Lambda::Function Wed Jan 08 2020 23:21:44 GMT+0000 (Western European Standard Time) 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: 65a212db-26d5-4e62-8b0b-b75e3ed27496)
⠴ Updating resources in the cloud. This may take a few minutes...
DELETE_COMPLETE UpdateRolesWithIDPFunction AWS::Lambda::Function Wed Jan 08 2020 23:21:55 GMT+0000 (Western European Standard Time)
UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS amplify-cforeports-js-231552 AWS::CloudFormation::Stack Wed Jan 08 2020 23:21:54 GMT+0000 (Western European Standard Time)
⠙ Updating resources in the cloud. This may take a few minutes...
DELETE_COMPLETE UpdateRolesWithIDPFunctionRole AWS::IAM::Role Wed Jan 08 2020 23:21:59 GMT+0000 (Western European Standard Time)
DELETE_IN_PROGRESS authcforeports89a5c9ae AWS::CloudFormation::Stack Wed Jan 08 2020 23:21:56 GMT+0000 (Western European Standard Time)
DELETE_IN_PROGRESS UpdateRolesWithIDPFunctionRole AWS::IAM::Role Wed Jan 08 2020 23:21:56 GMT+0000 (Western European Standard Time)
⠦ Updating resources in the cloud. This may take a few minutes...
DELETE_COMPLETE IdentityPoolRoleMap AWS::Cognito::IdentityPoolRoleAttachment Wed Jan 08 2020 23:22:00 GMT+0000 (Western European Standard Time)
DELETE_IN_PROGRESS IdentityPoolRoleMap AWS::Cognito::IdentityPoolRoleAttachment Wed Jan 08 2020 23:21:59 GMT+0000 (Western European Standard Time)
DELETE_IN_PROGRESS amplify-cforeports-js-231552-authcforeports89a5c9ae-WMNJK13CT92M AWS::CloudFormation::Stack Wed Jan 08 2020 23:21:57 GMT+0000 (Western European Standard Time) User Initiated
CREATE_COMPLETE amplify-cforeports-js-231552-authcforeports89a5c9ae-WMNJK13CT92M AWS::CloudFormation::Stack Wed Jan 08 2020 23:21:32 GMT+0000 (Western European Standard Time)
⠦ Updating resources in the cloud. This may take a few minutes...
DELETE_COMPLETE UserPoolClientWeb AWS::Cognito::UserPoolClient Wed Jan 08 2020 23:22:04 GMT+0000 (Western European Standard Time)
DELETE_IN_PROGRESS UserPoolClientInputs Custom::LambdaCallout Wed Jan 08 2020 23:22:03 GMT+0000 (Western European Standard Time)
DELETE_IN_PROGRESS UserPoolClientWeb AWS::Cognito::UserPoolClient Wed Jan 08 2020 23:22:03 GMT+0000 (Western European Standard Time)
DELETE_COMPLETE IdentityPool AWS::Cognito::IdentityPool Wed Jan 08 2020 23:22:03 GMT+0000 (Western European Standard Time)
DELETE_IN_PROGRESS IdentityPool AWS::Cognito::IdentityPool Wed Jan 08 2020 23:22:01 GMT+0000 (Western European Standard Time)
⠹ Updating resources in the cloud. This may take a few minutes...
DELETE_COMPLETE UserPoolClientInputs Custom::LambdaCallout Wed Jan 08 2020 23:22:06 GMT+0000 (Western European Standard Time)
⠧ Updating resources in the cloud. This may take a few minutes...
DELETE_COMPLETE UserPoolClientLambda AWS::Lambda::Function Wed Jan 08 2020 23:22:10 GMT+0000 (Western European Standard Time)
DELETE_IN_PROGRESS UserPoolClientLambda AWS::Lambda::Function Wed Jan 08 2020 23:22:10 GMT+0000 (Western European Standard Time)
DELETE_COMPLETE UserPoolClientLambdaPolicy AWS::IAM::Policy Wed Jan 08 2020 23:22:09 GMT+0000 (Western European Standard Time)
DELETE_IN_PROGRESS UserPoolClientLambdaPolicy AWS::IAM::Policy Wed Jan 08 2020 23:22:08 GMT+0000 (Western European Standard Time)
DELETE_COMPLETE UserPoolClientLogPolicy AWS::IAM::Policy Wed Jan 08 2020 23:22:07 GMT+0000 (Western European Standard Time)
DELETE_IN_PROGRESS UserPoolClientLogPolicy AWS::IAM::Policy Wed Jan 08 2020 23:22:06 GMT+0000 (Western European Standard Time)
⠸ Updating resources in the cloud. This may take a few minutes...
DELETE_IN_PROGRESS UserPoolClientRole AWS::IAM::Role Wed Jan 08 2020 23:22:11 GMT+0000 (Western European Standard Time)
⠇ Updating resources in the cloud. This may take a few minutes...
DELETE_IN_PROGRESS UserPool AWS::Cognito::UserPool Wed Jan 08 2020 23:22:16 GMT+0000 (Western European Standard Time)
DELETE_COMPLETE UserPoolClient AWS::Cognito::UserPoolClient Wed Jan 08 2020 23:22:15 GMT+0000 (Western European Standard Time)
DELETE_IN_PROGRESS UserPoolClient AWS::Cognito::UserPoolClient Wed Jan 08 2020 23:22:14 GMT+0000 (Western European Standard Time)
DELETE_COMPLETE UserPoolClientRole AWS::IAM::Role Wed Jan 08 2020 23:22:13 GMT+0000 (Western European Standard Time)
⠏ Updating resources in the cloud. This may take a few minutes...
DELETE_COMPLETE amplify-cforeports-js-231552-authcforeports89a5c9ae-WMNJK13CT92M AWS::CloudFormation::Stack Wed Jan 08 2020 23:22:21 GMT+0000 (Western European Standard Time)
DELETE_COMPLETE SNSRole AWS::IAM::Role Wed Jan 08 2020 23:22:20 GMT+0000 (Western European Standard Time)
DELETE_IN_PROGRESS SNSRole AWS::IAM::Role Wed Jan 08 2020 23:22:17 GMT+0000 (Western European Standard Time)
DELETE_COMPLETE UserPool AWS::Cognito::UserPool Wed Jan 08 2020 23:22:17 GMT+0000 (Western European Standard Time)
⠼ Updating resources in the cloud. This may take a few minutes...
UPDATE_ROLLBACK_COMPLETE amplify-cforeports-js-231552 AWS::CloudFormation::Stack Wed Jan 08 2020 23:22:31 GMT+0000 (Western European Standard Time)
DELETE_COMPLETE authcforeports89a5c9ae AWS::CloudFormation::Stack Wed Jan 08 2020 23:22:31 GMT+0000 (Western European Standard Time)
⠇ Updating resources in the cloud. This may take a few minutes...Error updating cloudformation stack
⠇ Updating resources in the cloud. This may take a few minutes...
Following resources failed
Resource Name: UpdateRolesWithIDPFunction (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: 65a212db-26d5-4e62-8b0b-b75e3ed27496)
✖ An error occurred when pushing the resources to the cloud
Resource is not in the state stackUpdateComplete
An error occured during the push operation: Resource is not in the state stackUpdateComplete
Expected behavior no errors when adding auth service
Desktop (please complete the following information):
- OS: Mac OS 10.14.6
- Node Version 12.6.0
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 11
- Comments: 18 (1 by maintainers)
For those who came here looking for this because the code wouldn’t build on the server via Amplify Console, here is where the setting is to change. Click on ‘Build settings’ on the left sidebar and update this at the bottom of the page.
I had the same problem, this is a possible solution:
node -v
- should be at least verstion 12, if not -> upgrade itamplify -v
, at this time, you should have at least 4.13.3, if not ->npm -g update @aws-amplify/cli
nodejs8.10
and replace it withnodejs12.x
Now you should be able to
amplify push
I fixed it on my side. Apparently the Amplify build container comes by default with ancient v1.xyz version of the Amplify CLI, which is quite strange. If you go to the build settings and explicitly specify Amplify version or pick latest then the problem will go away.
For those like me, who end up at this post beause they cannot build. the final post (above) is the fix.
When you scroll down to the bottom of your build settings, you will need to click edit at the top of the very bottom section. You will then see the section that the arrow is pointing at. You need to make sure you add the line NOT delete it if it is there (as the arrow seems to suggest).
When I looked there was nothing there, so I clicked ‘Add package version override’ and selected ‘Amplify’ latest. I then re ran my build and thankfully all was green and building and deploying correctly.
@asyschikov where can you find the build settings for amplify CLI that you are refering to ?
Updated to 4.11.0 and everything worked, thanks!
@sorokinvj Please upgrade to the latest version of the CLI and push again - to update the node runtimes (we migrate you automatically). Please comment on this thread if you’re still stuck and not able to migrate.
I run into this issue:
CREATE_FAILED UserPoolClientLambda AWS::Lambda::Function Mon Jan 20 2020 11:44:10 GMT+0100 (GMT+01:00) 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;
package.js
{ "name": "TBD", "version": "0.1.0", "private": true, "dependencies": { "@aws-amplify/api": "^2.1.3", "@aws-amplify/cli": "^4.12.0", "@aws-amplify/pubsub": "^1.3.3", "@testing-library/jest-dom": "^4.2.4", "@testing-library/react": "^9.4.0", "@testing-library/user-event": "^7.2.1", "aws-amplify": "^2.2.2", "aws-amplify-react": "^3.1.3", "graphql": "^14.5.8", "inquirer": "^7.0.3", "prop-types": "latest", "react": "^16.12.0", "react-dom": "^16.12.0", "react-scripts": "3.3.0", "redux": "^4.0.5", "redux-thunk": "^2.3.0" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" }, "eslintConfig": { "extends": "react-app" }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] }, "devDependencies": { "react-redux": "^7.1.3", "react-router-dom": "^5.1.2", "redux-form": "^8.2.6", "semantic-ui-react": "^0.88.2" } }
macOS: 10.15.2 node -v v10.16.3 npm -v 6.13.6Let’s try it again:
nested-cloudformation-stack.yml still have “Runtime”: “nodejs8.10”
I am a little bit desperate because I tried many things to fix it!! Any ideas?
I figured it out. @k3nnet I updated it by going through all the json under the project’s amplify folder and find mentions of node. I then updated all the mentions of all node versions to “nodejs12.x”. It’s working now.
anyone that runs into this issue - outside of uninstalling/reinstalling and clearing cache on your global clis, make sure to check if it’s a EACCES permissions issue. That’s what solved the problem for me.
https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally