Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New install, no edits, npm start, and I see syntax error: unexpected token #237

Closed
cschweda opened this issue Jul 27, 2016 · 2 comments
Closed

Comments

@cschweda
Copy link

New install:

npm install -g create-react-app

create-react-app my-app
cd my-app/
npm start

No edits, no changes.

And I get this error:

var isSmokeTest = process.argv.some(arg =>
                                         ^
SyntaxError: Unexpected token >
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:929:3

Running on a Macbook Pro, El Capitan.

@alexzherdev
Copy link
Contributor

What's your node version?

@gaearon
Copy link
Contributor

gaearon commented Jul 27, 2016

It only works with Node >= 4.
From README:

screen shot 2016-07-27 at 15 15 12

We fixed our version check in the next version so in the future it will error in versions < 4.

@gaearon gaearon closed this as completed Jul 27, 2016
nicosommi pushed a commit to nicosommi/create-react-app that referenced this issue Mar 17, 2018
…-files

Remove unnecessary js(x) files from template
@lock lock bot locked and limited conversation to collaborators Jan 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants