You are not logged in.

#1 2022-06-25 12:35:25

gameslayer
Member
Registered: 2021-12-14
Posts: 81

npm server issue EDIT: Electron 32bit support

Hey just wanted to also report a issue with npms server, when you try and install electron for example it will give a 404 error and downloads from the wrong address.

[jamie@jamie-emachine Youtube]$ npm i
npm ERR! code 1
npm ERR! path /run/media/jamie/47F22DEE70C10570/projects/Youtube/node_modules/electron
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! Official Linux/ia32 support is deprecated.
npm ERR! For more info: https://electronjs.org/blog/linux-32bit-support
npm ERR! HTTPError: Response code 404 (Not Found) for https://github.com/electron/electron/releases/download/v19.0.6/electron-v19.0.6-linux-ia32.zip
npm ERR!     at EventEmitter.<anonymous> (/run/media/jamie/47F22DEE70C10570/projects/Youtube/node_modules/got/source/as-stream.js:35:24)
npm ERR!     at EventEmitter.emit (node:events:527:28)
npm ERR!     at module.exports (/run/media/jamie/47F22DEE70C10570/projects/Youtube/node_modules/got/source/get-response.js:22:10)
npm ERR!     at ClientRequest.handleResponse (/run/media/jamie/47F22DEE70C10570/projects/Youtube/node_modules/got/source/request-as-event-emitter.js:155:5)
npm ERR!     at Object.onceWrapper (node:events:642:26)
npm ERR!     at ClientRequest.emit (node:events:539:35)
npm ERR!     at origin.emit (/run/media/jamie/47F22DEE70C10570/projects/Youtube/node_modules/@szmarczak/http-timer/source/index.js:37:11)
npm ERR!     at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:639:27)
npm ERR!     at HTTPParser.parserOnHeadersComplete (node:_http_common:117:17)
npm ERR!     at TLSSocket.socketOnData (node:_http_client:502:22)

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/jamie/.npm/_logs/2022-06-25T10_02_59_101Z-debug-0.log

Last edited by gameslayer (2022-06-29 07:07:44)

Offline

#2 2022-06-25 15:17:58

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 984
Website

Re: npm server issue EDIT: Electron 32bit support

npm ERR! Official Linux/ia32 support is deprecated.

Well, Electron is deprecated on 32-bit since version 3 or 4. :-)

Offline

#3 2022-06-25 15:22:52

gameslayer
Member
Registered: 2021-12-14
Posts: 81

Re: npm server issue EDIT: Electron 32bit support

Ignore that message, they still support it and I still build packages for 32bit but on Arch32 npm is broken smile

Offline

#4 2022-06-25 15:23:49

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 984
Website

Re: npm server issue EDIT: Electron 32bit support

Ah, true that. npm is broken since quite a while on Arch32. :-)

Offline

#5 2022-06-25 15:26:08

gameslayer
Member
Registered: 2021-12-14
Posts: 81

Re: npm server issue EDIT: Electron 32bit support

Ahh I see, will this get fixed? I need it for Arch32

Offline

#6 2022-06-25 15:33:19

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 984
Website

Re: npm server issue EDIT: Electron 32bit support

Mmh. Npm seems to work atm. As I read https://electronjs.org/blog/linux-32bit-support
(and the HTTP error above), Electron is not supporting 32-bit anymore.

No, I personally have no plans to fix Electron on Arch32.. :-)

Offline

#7 2022-06-25 16:26:40

gameslayer
Member
Registered: 2021-12-14
Posts: 81

Re: npm server issue EDIT: Electron 32bit support

Ahh damn they must of dropped support for it sad

Offline

#8 2022-06-26 07:28:27

gameslayer
Member
Registered: 2021-12-14
Posts: 81

Re: npm server issue EDIT: Electron 32bit support

Would you guys be able to put electron on the Arch32 repo? That would be an awesome way to keep the support alive and keep support for applications that use Electron

Offline

#9 2022-06-26 08:11:43

levi
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,197

Re: npm server issue EDIT: Electron 32bit support

Not unless electron revoke their idea to stop supporting electron since version 3.


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Offline

#10 2022-06-26 08:20:40

gameslayer
Member
Registered: 2021-12-14
Posts: 81

Re: npm server issue EDIT: Electron 32bit support

It's actually lying, if you revert a couple versions back, the last compiled version released was 18.3.5 but since it's open source you could just compile it yourself since they won't anymore and redistribute it on the repo like Manjaro does for x64 system in their repo.

Offline

#11 2022-06-26 08:59:05

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 984
Website

Re: npm server issue EDIT: Electron 32bit support

Building Electron from scratch might involve some node.js patches and stuff.

This doesn't look too hard, so I might give it a try (though I think somebody else could do it for training :-) ):
https://www.electronjs.org/docs/latest/ … ions-linux

There are not that lot of important Electron apps, so this might not have the highest priority. :-)

Offline

#12 2022-06-26 09:09:35

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 984
Website

Re: npm server issue EDIT: Electron 32bit support

So, upstream (64-bit) is building electron from scratch. Let's see what the obstactles are when doing the same on pentium4.. :-)

Offline

#13 2022-06-26 09:22:40

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 984
Website

Re: npm server issue EDIT: Electron 32bit support

Fetching chromium...
Cloning into 'src'...

mmh. This needs local libseccomp patching, chromium currently doesn't really work on 32-bit Intel. And this is a problem
since quite a while. And everybody cloning his own version for his project (here Electron) is not really helping either..

Offline

#14 2022-06-26 10:35:06

gameslayer
Member
Registered: 2021-12-14
Posts: 81

Re: npm server issue EDIT: Electron 32bit support

I really hope this is doable, there is apps that use it including the many desktop apps for web services I have made using electron and YouTube and YouTube music for example run great even on a couple old PC's running Arch32

Offline

#15 2022-06-27 06:00:49

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 984
Website

Re: npm server issue EDIT: Electron 32bit support

Errors:
  failed to resolve infra/3pp/tools/httpd-php/linux-386@version:2@httpd2.4.38.php7.3.31.chromium.3 (line 11): no such package: infra/3pp/tools/httpd-php/linux-386
  failed to resolve infra/3pp/tools/esbuild/linux-386@version:2@0.14.13.chromium.2 (line 17): no such package: infra/3pp/tools/esbuild/linux-386
Error: Command 'cipd ensure -log-level error -root /build/electron/src -ensure-file /tmp/tmpoxlzcynk.ensure' returned non-zero exit status 1
Errors:
  failed to resolve infra/3pp/tools/httpd-php/linux-386@version:2@httpd2.4.38.php7.3.31.chromium.3 (line 11): no such package: infra/3pp/tools/httpd-php/linux-386
  failed to resolve infra/3pp/tools/esbuild/linux-386@version:2@0.14.13.chromium.2 (line 17): no such package: infra/3pp/tools/esbuild/linux-386

and this is in prepare :->

Offline

#16 2022-06-27 06:02:26

gameslayer
Member
Registered: 2021-12-14
Posts: 81

Re: npm server issue EDIT: Electron 32bit support

Patches needed to be done to resolve this?

Offline

#17 2022-06-27 07:43:43

levi
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,197

Re: npm server issue EDIT: Electron 32bit support

Yes, fixes needed for at the very least the PKGBUILD.


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Offline

#18 2022-06-27 16:18:41

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 984
Website

Re: npm server issue EDIT: Electron 32bit support

This look quite bad, actually. Electron might have built in version 3.0. I don't have any plans to tackle this.. :-)

Offline

#19 2022-06-27 23:32:13

gameslayer
Member
Registered: 2021-12-14
Posts: 81

Re: npm server issue EDIT: Electron 32bit support

Oh I see that's a pain.

Offline

#20 2022-06-29 07:04:22

gameslayer
Member
Registered: 2021-12-14
Posts: 81

Re: npm server issue EDIT: Electron 32bit support

Offline

#21 2022-06-29 08:28:25

gameslayer
Member
Registered: 2021-12-14
Posts: 81

Re: npm server issue EDIT: Electron 32bit support

Also made this request on electron

https://github.com/electron/electron/issues/34783

Offline

#22 2022-06-29 09:43:59

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 984
Website

Re: npm server issue EDIT: Electron 32bit support

The problem in Chromium is with libseccomp-jailing for IA-32. It broke again and again till it finally broke (in a final way). :-)
I know about some people in Slackware trying to fix it.. maybe then there is a chance.

Offline

#23 2022-06-29 11:41:27

gameslayer
Member
Registered: 2021-12-14
Posts: 81

Re: npm server issue EDIT: Electron 32bit support

You can get it working using this argument  --disable-seccomp-filter-sandbox

here is my Fujitsu laptop with Arch32 running my Youtube desktop app compiled for Linux 32bit

https://i.imgur.com/jQ5ssw6.jpg

Last edited by gameslayer (2022-06-29 11:49:30)

Offline

Board footer

Powered by FluxBB