Skip to content

Instantly share code, notes, and snippets.

Last active February 19, 2019 07:26
What would you like to do?
Solutions for unexpected problems from using electron
If you are in china:
❌ `npm install electron`
❌ `npm run build`
✅ `ELECTRON_MIRROR= npm install electron`
✅ `ELECTRON_MIRROR= npm run build`
For windows command line:(no space between two command)
✅ `set ELECTRON_MIRROR= run build`
If `fs-events` error hits you, e.g. when you use chokidar:
❌ `npm install`
✅ `npm install --no-optional`
If you use `electron-builder` and windows, you need to download and put some files to the right place:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment