docs: add electron build troubleshooting (#8102)

This commit is contained in:
Yifeng Wang
2024-09-05 13:39:01 +08:00
committed by GitHub
parent 23748c83a1
commit b711b087c5

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