Fresh Install 'npm run dev' fails on Mac
See original GitHub issueFound an issue or bug with electron-vue? Tell me all about it!
Questions regarding how to use electron or vue are likely to be closed as they are not direct issues with this boilerplate. Please seek solutions from official documentation or their respective communities.
Describe the issue / bug.
# On a fresh install, I run npm run dev and it gives the following error:
SyntaxError: Unexpected token { at Object../node_modules/electron-localshortcut/index.js (/Users/jbedford/Sites/lando-gui/dist/electron/main.js:249:1) at __webpack_require__ (/Users/jbedford/Sites/lando-gui/dist/electron/main.js:21:30) at eval (webpack:///./node_modules/electron-debug/index.js?:3:23) at Object../node_modules/electron-debug/index.js (/Users/jbedford/Sites/lando-gui/dist/electron/main.js:177:1) at __webpack_require__ (/Users/jbedford/Sites/lando-gui/dist/electron/main.js:21:30) at eval (webpack:///./src/main/index.dev.js?:2:1) at Object../src/main/index.dev.js (/Users/jbedford/Sites/lando-gui/dist/electron/main.js:505:1) at __webpack_require__ (/Users/jbedford/Sites/lando-gui/dist/electron/main.js:21:30) at eval (webpack:///multi_./src/main/index.dev.js_./src/main/index.js?:1:1) at Object.0 (/Users/jbedford/Sites/lando-gui/dist/electron/main.js:528:1)
How can I reproduce this problem?
# Follow the instructions given to install and start this. `# Install vue-cli and scaffold boilerplate npm install -g vue-cli vue init simulatedgreg/electron-vue my-project
Install dependencies and run your app
cd my-project yarn # or npm install yarn run dev # or npm run dev`
I utilized npm install and npm run dev
Tell me about your development environment.
- Node version: 12.10.0
- NPM version: 6.13.0
- vue-cli version: (if necessary) 2.9.6
- Operating System: macOS 10.14.6
Issue Analytics
- State:
- Created 4 years ago
- Reactions:10
- Comments:15

Top Related StackOverflow Question
why do we need to downgrade if the current lts version is v12
It is now just giving another error: ‘Process is not defined’