npm/yarn run dev fails with SyntaxError
See original GitHub issueDescribe 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:
- Created 4 years ago
- Reactions:4
- Comments:7
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

you can try to: yarn add electron-localshortcut@3.1.0
I can confirm that @yangjiakun326 solution works