SimulatedGREG / electron-vue

An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
https://simulatedgreg.gitbooks.io/electron-vue/content/
MIT License
15.48k stars 1.55k forks source link

Unable to run sample app. #980

Closed jpheneger closed 4 years ago

jpheneger commented 4 years ago

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.

# Running the command 'npm run dev' generates the following output:

electron-vue-example@0.0.1 dev /Users/jpheneger/code/electron-vue-example node .electron-vue/dev-runner.js

     ___                      __

/_ \ /\ _ _ / ,.\ \//\ \ / ,.\ /'__\ \ \ ,\ /` \ / \ /' _\ _____ /\ \/\ \/\ \/\ \ / ,.`\ /\ / _\ _ /\ / /\ _/ \ \ \/ \ \ \/ /\ _\ \/\ \/\ \ /_____\ \ \/ |\ \ _\ \/\ / \ _\ /_\ __\ __\ \ \ _ \ _\ \ _/\ _\ \\/__/ \ _/ \ _/\ __\ \// \// \// \// \ __\ \// \/_/ \//\// \// \/_/ \/__/ \// getting ready...

┏ Main Process ---------------

compiling...

┗ ----------------------------

ℹ 「wds」: Project is running at http://localhost:9080/ ℹ 「wds」: webpack output is served from undefined ℹ 「wds」: Content not from webpack is served from /Users/jpheneger/code/electron-vue-example/ ┏ Renderer Process -----------

Hash: 031d19b87610000e8392 Version: webpack 4.41.5 Time: 1740ms Built at: 02/03/2020 9:12:19 PM Asset Size Chunks Chunk Names imgs/logo--assets.png 60.4 KiB [emitted] index.html 466 bytes [emitted] renderer.js 1.79 MiB renderer [emitted] renderer Entrypoint renderer = renderer.js [1] multi (webpack)-dev-server/client?http://localhost ./.electron-vue/dev-client ./src/renderer/main.js 52 bytes {renderer} [built] [./.electron-vue/dev-client.js] 731 bytes {renderer} [built] [./node_modules/strip-ansi/index.js] 161 bytes {renderer} [built] [./node_modules/vue/dist/vue.esm.js] 319 KiB {renderer} [built] [./node_modules/webpack-dev-server/client/index.js?http://localhost] (webpack)-dev-server/client?http://localhost 4.29 KiB {renderer} [built] [./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.51 KiB {renderer} [built] [./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.53 KiB {renderer} [built] [./node_modules/webpack-dev-server/client/utils/createSocketUrl.js] (webpack)-dev-server/client/utils/createSocketUrl.js 2.91 KiB {renderer} [built] [./node_modules/webpack-dev-server/client/utils/log.js] (webpack)-dev-server/client/utils/log.js 964 bytes {renderer} [built] [./node_modules/webpack-dev-server/client/utils/reloadApp.js] (webpack)-dev-server/client/utils/reloadApp.js 1.59 KiB {renderer} [built] [./node_modules/webpack-dev-server/client/utils/sendMessage.js] (webpack)-dev-server/client/utils/sendMessage.js 402 bytes {renderer} [built] [./node_modules/webpack-hot-middleware/client.js?noInfo=true&reload=true] (webpack)-hot-middleware/client.js?noInfo=true&reload=true 7.68 KiB {renderer} [built] [./node_modules/webpack/hot sync ^.\/log$] (webpack)/hot sync nonrecursive ^.\/log$ 170 bytes {renderer} [built] [./src/renderer/App.vue] 1.12 KiB {renderer} [built] [./src/renderer/main.js] 315 bytes {renderer} [built]

┗ ----------------------------

dyld: lazy symbol binding failed: Symbol not found: _FSEventStreamCreate Referenced from: /Users/jpheneger/code/electron-vue-example/node_modules/fsevents/build/Release/fse.node Expected in: flat namespace

dyld: Symbol not found: _FSEventStreamCreate Referenced from: /Users/jpheneger/code/electron-vue-example/node_modules/fsevents/build/Release/fse.node Expected in: flat namespace

Abort trap: 6

How can I reproduce this problem?

# Create sample app, run npm install && npm run dev

If visual, provide a screenshot.

#

Tell me about your development environment.

If you are looking to suggest an enhancement or feature, then feel free to remove everything above.

jpheneger commented 4 years ago

Turns out this issue was caused by running a version of Node installed by Homebrew - Electron DOES NOT like Node when it is installed via Homebrew. Removing that version of node and downloading from nodejs.com/downloads resolved the issue.