docs: add electron build troubleshooting (#8102)

This commit is contained in:
Yifeng Wang authored and GitHub committed 2024-09-05 13:39:01 +08:00
1 parent 23748c83a1
commit b711b087c5
1 file changed
+6
+6
View File
@@ -17,6 +17,12 @@ yarn dev # or yarn prod for production build
## Troubleshooting
If you have trouble building electron during `yarn install`, try setting mirror environment variable:
```sh
export ELECTRON_MIRROR="https://registry.npmmirror.com/-/binary/electron/"
```
## Credits
Most of the boilerplate code is generously borrowed from the following