Amplify-cli: Version 4.13.2 on Mac: unexpected token error

Created on 13 Feb 2020  路  4Comments  路  Source: aws-amplify/amplify-cli

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

  • Install @aws-amplify/[email protected]
  • Run amplify configure .. or pretty much anything w/ amplify. Event amplify -v fails

Desktop:

  • OS: Mac : High Sierra : 10.13.6
  • Node Version: v8.16.0
migration-issue platform question

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.

All 4 comments

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/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kangks picture kangks  路  3Comments

nason picture nason  路  3Comments

jeanpaulcozzatti picture jeanpaulcozzatti  路  3Comments

adriatikgashi picture adriatikgashi  路  3Comments

nicksmithr picture nicksmithr  路  3Comments