PINE64
Quick Hint: Building Electron Apps - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: Linux on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=114)
+--- Thread: Quick Hint: Building Electron Apps (/showthread.php?tid=8170)



Quick Hint: Building Electron Apps - kettek - 11-01-2019

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:
Code:
$ npm i electron --arch=armv7l

or if installing in general:

$ npm i --arch=armv7l
Afterwards you should be good to go.


Quick Hint: Building Electron Apps - Wizzard - 11-02-2019

Thanks! Will try to build Rambox app.

Odoslané z ONEPLUS A5010 pomocou Tapatalku


RE: Quick Hint: Building Electron Apps - aleksei - 11-02-2019

Another hint for any individuals building or developing Electron-based apps: don't. Smile


RE: Quick Hint: Building Electron Apps - Wizzard - 11-02-2019

(11-02-2019, 04:22 AM)aleksei Wrote: Another hint for any individuals building or developing Electron-based apps: don't. Smile
Because? I just need that Rambox app or something like that.


RE: Quick Hint: Building Electron Apps - Wizzard - 11-04-2019

I tried to build Rambox and ended just like on old Pinebook. It looks it was built, but after running it just opens a blank window with menu, without the app contents.