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.

Fresh Install 'npm run dev' fails on Mac

See original GitHub issue

Found 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:open
  • Created 4 years ago
  • Reactions:10
  • Comments:15

github_iconTop GitHub Comments

10reactions
Venipacommented, Jan 24, 2020

why do we need to downgrade if the current lts version is v12

4reactions
JoshuaBedfordcommented, Nov 11, 2019

It is now just giving another error: ‘Process is not defined’

  ERROR in Template execution failed: ReferenceError: process is not defined
  
  ERROR in   ReferenceError: process is not defined
    
    - index.ejs:11 eval
      [.]/[html-webpack-plugin]/lib/loader.js!./src/index.ejs:11:2
    
    - index.ejs:16 module.exports
      [.]/[html-webpack-plugin]/lib/loader.js!./src/index.ejs:16:3
    
    - index.js:284 
      [lando-gui]/[html-webpack-plugin]/index.js:284:18
    
    - task_queues.js:93 processTicksAndRejections
      internal/process/task_queues.js:93:5
Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR MODULE NOT FOUND whenever I try to run 'npm run ...
I've tried to delete node_modules and reinstall it using npm install but that didn't work. Then I tried to delete both node_modules and...
Read more >
Common errors | npm Docs
Some strange issues can be resolved by simply running npm cache clean and trying again. If you are having trouble with npm install...
Read more >
Laravel 5.4, npm run dev fails. When moving ... - Laracasts
Having issues with Laravels mix and running the npm run dev command. I moved the project from the windows computer to a mac...
Read more >
Manage npm packages - Visual Studio (Windows)
Package status · Install New npm Packages Opens the UI to install new packages. · Install npm Packages Runs the npm install command...
Read more >
NPM install error - Material Design for Bootstrap
Delete node_modules folder and package-json.lock · Then run npm i · If problem still exists repeat point 1 and go to 4 point...
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