Yes
Yes
react-scripts syntax error
(Write your answer here if relevant.)
node -v
: v4.7.3npm -v
: 5.3.0yarn --version
(if you use Yarn):npm ls react-scripts
(if you haven’t ejected): [email protected] /home/ubuntu/workspace/my-appThen, specify:
Code would compile and app would run
> [email protected] start /home/ubuntu/workspace/my-app
> react-scripts start
/home/ubuntu/workspace/my-app/node_modules/react-scripts/scripts/start.js:33
const {
^
SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:990:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
Are you 100% sure Node version is 5.3.0 and not some older Node?
npm -v shows "5.3.0". I had gone down to 4.6.1 to confirm that the problem could be reproduced with npm 4.x. But updated back to 5.3.0. Getting same error with both versions.
node -v shows "v4.7.3"
Sorry, I got confused 😞
As per installation:
You’ll need to have Node >= 6 on your machine.
Node 4 or 5 won’t work. Please update to Node 6.
Most helpful comment
Are you 100% sure Node version is 5.3.0 and not some older Node?