I was following the steps given in the AWS Documentation.
But after creating hello-world react app, I went into app root folder and tried to run "awsmobile init" command but I got error 'Unexpected token function'.
I am using node version v6.11.5
My question is why am I getting this error as there is no reference to this error given in the documentation ? How to resolve it ?
Please use node version 7 and above, the awsmobile-cli has been tested extensively on node version 8.9.x The error you reported here seems to be caused by old version of node is not able to parse newer js features.