As a part of debugging that, I tried to switch from the
gulp plugin to the
nodejs plugin so that I can use
yarn (which is what upstream uses to build), but it seems that
electron-rebuild fails to find the
node binary when using the
nodejs plugin (both with and without the
yarn package manager).
npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! email@example.com postinstall: `electron-rebuild --types=prod,optional` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the firstname.lastname@example.org postinstall script.
[4/4] Building fresh packages... [1/12] ⠈ electron [-/12] ⠈ waiting... [-/12] ⠈ waiting... [-/12] ⠁ waiting... error /root/build_google-play-music-desktop-player/parts/google-play-music-desktop-player/src/node_modules/google-play-music-desktop-player: Command failed. Exit code: 127 Command: electron-rebuild --types=prod,optional Arguments: