Quick Hint: Building Electron Apps
#1
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.
#2
Thanks! Will try to build Rambox app.

Odoslané z ONEPLUS A5010 pomocou Tapatalku
#3
Another hint for any individuals building or developing Electron-based apps: don't. Smile
#4
(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.
#5
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.


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Building custom kernel (5.11.x) for Manjaro? ppafin 4 1,247 06-02-2021, 04:17 AM
Last Post: ppafin
  Building webkit2gtk gleachkr 9 3,355 03-10-2020, 12:17 PM
Last Post: gleachkr
  Gnome3 UI Scaling Hint Jeremiah Cornelius 0 810 02-05-2020, 07:10 PM
Last Post: Jeremiah Cornelius
  Quick Question Wayland vs X Jeremiah Cornelius 3 2,619 12-07-2019, 09:00 PM
Last Post: Samarium151

Forum Jump:


Users browsing this thread: 2 Guest(s)