nvm install
failed in prepare()
when build in chroot
==> Starting prepare()...
--> Using Electron package: electron
--> Electron package version: 20.0.0
--> Install toolchain with nvm
Found '/build/franz/src/franz/.nvmrc' with version <16.13.0>
Downloading and installing node v16.13.0...
Binary download failed, trying source.
Strangely adding || true
after the nvm install
fixes the problem somehow:
==> Starting prepare()...
--> Using Electron package: electron
--> Electron package version: 20.0.0
--> Install toolchain with nvm
Found '/build/franz/src/franz/.nvmrc' with version <16.13.0>
Downloading and installing node v16.13.0...
Downloading https://nodejs.org/dist/v16.13.0/node-v16.13.0-linux-x64.tar.xz...
#################################################################################################################################################################### 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v16.13.0 (npm v8.1.0)
Creating default alias: default -> 16.13.0 (-> v16.13.0)
--> Install modules dependencies with lerna
Pinned Comments
ItachiSan commented on 2019-10-07 08:26 (UTC) (edited on 2021-09-08 07:58 (UTC) by ItachiSan)
If you have troubles, read this message!
Please go to the relevant section of this comment in order to make both your and my life easier :)
Now, to the resolutions!
1. The app opens but I got a blue screen and nothing more / The app refuses to start / ...
The package depends on Node.js native stuff which are compiled at build time, which makes it break on Electron updates.
With a PKGBUILD between 2020-11-15 till 2021-09-08, you should always have gad a correct matching between Electron and Franz versions.
After 2021-09-08, while the Electron packages follows just the official Arch package dependency, as it is based on not-rolling versions (AKA following a specific Electron branch) breakages are unlikely.
If you would like to help me on this, whenever you have problems starting it, do the following:
If the above steps help you, report the package as outdated here and write in the comment something like:
If you have some other issues, you should open the developer tools and give me its output, in addition to what is your environment, so I can figure out if it is a packaging issue (my job to fix) or an upstream/code issue (their job to fix); in the second case, I will open a bug request and mention it in a comment, so that you can track it.
2. (Obsolete) I cannot upgrade Electron
The following resolution is not valid since 2021-09-08, it is kept for historic purposes
This is intended; since the PKGBUILD for Franz 5.5.0-4, the package marks as dependency a version-locked Electron package in order to avoid issues with binary modules over upgrades.
In such scenario, you should, assuming
_electron="electron"
in the PKGBUILD (meaning the Electron used is bundled in the packageelectron
):pacman -Syu --ignore electron
If you want however to upgrade the Electron package, do
pacman -S --assume-installed electron=FRANZ.REQUIRED.VERSION electron
Hope this was a good explanation, might get updates if I missed something :)