0

I have problem with react app. I cloned it from git and run comands npm install and npm start and I got this error.

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:140:18)
at node.js:1043:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `react-scripts build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/adeda/.npm/_logs/2017-07-28T10_14_54_951Z-debug.log
1
  • Please accept the answer if it helped you, otherwise please reengage the topic Commented Aug 7, 2017 at 17:02

1 Answer 1

5

Don't clone the repo, just install the library globally, then generate the app using the given command:

$ npm install -g create-react-app

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

https://github.com/facebookincubator/create-react-app#quick-overview

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.