Unknown output type: JSON
See original GitHub issueHey Guys,
I’m getting this error when I run npm run setup
- the stack gets created but any subsequent updates won’t deploy.
> aws cloudformation create-stack --stack-name $npm_package_config_cloudFormationStackName --template-body file://./cloudformation.json --capabilities CAPABILITY_IAM --parameters ParameterKey=AwsServerlessExpressS3Bucket,ParameterValue=$npm_package_config_s3BucketName --region $npm_package_config_region
Unknown output type: JSON
npm ERR! Darwin 16.0.0
npm ERR! argv "/Users/gb/.nvm/versions/node/v4.3.2/bin/node" "/Users/gb/.nvm/versions/node/v4.3.2/bin/npm" "run" "create-stack"
npm ERR! node v4.3.2
npm ERR! npm v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! aws-serverless-express-example@1.1.0 create-stack: `aws cloudformation create-stack --stack-name $npm_package_config_cloudFormationStackName --template-body file://./cloudformation.json --capabilities CAPABILITY_IAM --parameters ParameterKey=AwsServerlessExpressS3Bucket,ParameterValue=$npm_package_config_s3BucketName --region $npm_package_config_region`
npm ERR! Exit status 255
Issue Analytics
- State:
- Created 7 years ago
- Comments:8
Top Results From Across the Web
AWS CLI - All commands return Unknown output type: [None]
If it's in upper case then running any aws command shows "Unknown ouput type : JSON" . Or alternately open the file C:\Users\<user>\.aws\config ......
Read more >Error in my AWS CLI: Unknown output type: [None]
I looked into it and found that in my AWS config file (~/.aws/config). Output was set to clear. I changed this to json...
Read more >AWS CLI Error: All commands return Unknown output type ...
Often times the ~/. aws/config is having some configuration issues and needs to be reconfigured or modified. This is because there are multiple ......
Read more >Setting the AWS CLI output format - AWS Documentation
JSON is the default output format of the AWS CLI. Most programming languages can easily decode JSON strings using built-in functions or with...
Read more >AWS CLI MP3 not recognized. Please help
the process fails with Unknown output type: mp3 ... you see when running aws configure should be set to one of the following:...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Spot on! Thanks @brettstack - I ran
aws configure
and changedDefault output format: JSON
totext
and now it’s working perfectly!Thanks for your help 👍
@gilesbutler I had faced a similar issue changing “JSON” to “json” (lower case) after running aws configure solved the problem