question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

master ~/MyAppReact> npm start

> @ start /home/darko/MyAppReact
> babel-node tools/run start

/home/darko/MyAppReact/tools/start.js:42
            plugins: [...(x.query ? x.query.plugins : []), ['react-transform', {
                      ^^^

SyntaxError: Unexpected token ...
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:414:25)
    at loader (/home/darko/MyAppReact/node_modules/babel-register/lib/node.js:126:5)
    at Object.require.extensions.(anonymous function) [as .js] (/home/darko/MyAppReact/node_modules/babel-register/lib/node.js:136:7)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (run.js:27:18)
    at Module._compile (module.js:435:26)

npm ERR! Linux 3.13.0-37-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v4.2.0
npm ERR! npm  v3.3.8
npm ERR! code ELIFECYCLE
npm ERR! @ start: `babel-node tools/run start`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @ start script 'babel-node tools/run start'.
npm ERR! This is most likely a problem with the  package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     babel-node tools/run start
npm ERR! You can get their info via:
npm ERR!     npm owner ls 
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/darko/MyAppReact/npm-debug.log
exit 1

I am running Linux Mint

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
frenzzycommented, Mar 19, 2016

You need to upgrade node.js to version 5.x or change this line to es2015

2reactions
nickeblewiscommented, Mar 22, 2016

What happens if you try:

$ nvm install v5 $nvm use v5.9.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to run "npm start" shows error. how to resolve?
Try typing npm run start alt npm r start. navigate to the same folder where the package.json is located type npm install to...
Read more >
npm install/npm start failing. #1340 - GitHub
I've got an older project that I need to update but npm install > npm start is failing. to be clear - I've...
Read more >
I get this error when running $ npm start , following setup steps ...
25 error Failed at the keysto...@0.0.0 start script 'none'. 25 error Make sure you have the latest version of node.js and npm installed....
Read more >
Common errors | npm Docs
Not found / Server error · It's most likely a temporary npm registry glitch. Check npm server status and try again later. ·...
Read more >
npm ERR! Missing script: "start" [Solved] | bobbyhadz
To solve the npm ERR! Missing script: "start" error, make sure to add a start command to the scripts object in your package.json...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found