When installing electron on WSL, the linux version is installed by default, which can't be started on WSL1.
The trick is to make wsl believe it's on windows. Before installing the electron package, run: export npm_config_platform=win32
.
The one command line is: export npm_config_platform=win32 && npm install --save-dev electron && unset npm_config_platform
Comments
Post a Comment