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.

npm/yarn run dev fails with SyntaxError

See original GitHub issue
Describe the issue / bug.

# npm run dev / yarn run dev fails with SyntaxError: Unexpected token {

How can I reproduce this problem?

# Install node 10.13.0, init a project then run dev server

If visual, provide a screenshot.

# http://prntscr.com/pumc9k http://prntscr.com/pumcca

Tell me about your development environment.
  • Node version: 10.13.0 (v12 doesn’t work)
  • NPM version: 6.4.1
  • vue-cli version: (if necessary) 4.0.5
  • Operating System: Windows 10 Pro (also fails on Fedora 30)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:7

github_iconTop GitHub Comments

4reactions
yangjiakun326commented, Nov 10, 2019

you can try to: yarn add electron-localshortcut@3.1.0

2reactions
axeldeaucommented, Nov 10, 2019

I can confirm that @yangjiakun326 solution works

Read more comments on GitHub >

github_iconTop Results From Across the Web

Yarn run build SyntaxError - npm - Stack Overflow
runing Electron Build result in a SyntaxError: Unexpected token function ... Looks like the issue is not present in version or electron ...
Read more >
Laravel-Mix npm run dev syntax error! · Issue #772 - GitHub
npm ERR! npm ERR! Failed at the @ dev script 'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules -- ...
Read more >
npm, pnpm, and Yarn | IntelliJ IDEA Documentation - JetBrains
IntelliJ IDEA integrates with the npm, Yarn, Yarn 2, and pnpm, so you can install, locate, update, and remove packages of reusable code...
Read more >
1351907 - | yarn run start | fails on Windows - Bugzilla@Mozilla
node_modules\neutrino\bin\neutrino' is not recognized as an internal or external command, operable program or batch file. error Command failed with exit ...
Read more >
What are NPM, Yarn, Babel, and Webpack - Medium
Yarn solves this problem by installing these packages in parallel. ... Webpack Dev Server runs in port 8080 by default.
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