Describe the bug
After installing amplify-cli via npm install -g @aws-amplify/cli. Running any amplify command throws an error.
/usr/local/lib/node_modules/@aws-amplify/cli/lib/plugin-manager.js:47
catch {
^
SyntaxError: Unexpected token {
at Generator.next (<anonymous>)
at Object.Module._extensions..js (module.js:664:10)
Amplify CLI Version
4.13.2
To Reproduce
@aws-amplify/[email protected]amplify configure .. or pretty much anything w/ amplify. Event amplify -v failsDesktop:
Downgrading to V4.13.0 works fine.
@DanielLopez-nbcuni I see you're running Node 8, as Node 8 became unsupported the minimum version for Amplify CLI is Node 10. The problem probably you see is caused by ES6 compatibility in Node 8. Please upgrade to at least Node 10.
@attilah It would be great to document this change as well at https://aws-amplify.github.io/docs/ the first thing I checked was the Node version but the setup was informing Node 8 as minimum version.
Experienced the same issue. The main installation page still says that Node 8.x is required.
https://aws-amplify.github.io/docs/
Most helpful comment
@DanielLopez-nbcuni I see you're running Node 8, as Node 8 became unsupported the minimum version for Amplify CLI is Node 10. The problem probably you see is caused by ES6 compatibility in Node 8. Please upgrade to at least Node 10.