11-01-2019, 11:22 PM
Just a quick hint for any individuals building or developing Electron-based apps:
If you simply issue npm install electron, the process will fail with a non-specific 404 error as well as an unhandled promise reject during electron's postinstall stage. This is due to, afaik, the electron downloader pulling for the non-existent arm(maybe?) build instead of the more appropriate armv7l build.
To resolve this, pass the arch flag as such:
Afterwards you should be good to go.
If you simply issue npm install electron, the process will fail with a non-specific 404 error as well as an unhandled promise reject during electron's postinstall stage. This is due to, afaik, the electron downloader pulling for the non-existent arm(maybe?) build instead of the more appropriate armv7l build.
To resolve this, pass the arch flag as such:
Code:
$ npm i electron --arch=armv7l
or if installing in general:
$ npm i --arch=armv7l