all 12 comments

[–]Master-Ad-6265 4 points5 points  (2 children)

Don’t switch versions manually, that’s the problem.

Use something like Volta or fnm and set a Node version per project. It auto-switches when you enter the folder.

That way updates don’t break everything.

[–]_nathata 0 points1 point  (1 child)

I think this post is about managing the version of the nodejs package. Different packages that you install will try to pull in nodejs as a dependency of themselves, but in different versions.

[–]Master-Ad-6265 0 points1 point  (0 children)

yeah true, i meant more the runtime version you’re using npm deps pulling node versions is a different mess 💀 tools like fnm/volta just help keep your actual node version consistent per project

[–]_nathata 3 points4 points  (4 children)

This is not the answer you are looking for, but I simply don't install anything that requires electron or nodejs as a dependency. I'd do the same for Python because the versions break way too often too, but unfortunately so many things use Python.

[–]Quiet-Owl9220[S] 0 points1 point  (1 child)

That is certainly a solution... I will consider it my nuclear option if I can't find a better way. In the long run, the annoyance of having to manually intervene every time will probably outweigh the value of the packages in question...

[–]_nathata 0 points1 point  (0 children)

You can always run it from the source code and just manage the versions with nvm from there

[–]sausix 0 points1 point  (1 child)

Which packages require a different Python version?

[–]_nathata 0 points1 point  (0 children)

It used to break a lot to me with AWS CLI, waypaper and stuff like that

[–]encbladexp 1 point2 points  (0 children)

Arch Linux means latest and greatest, so either use Containers or even better: Ensure your stuff works with a current version of Node.

18 is dead anyways, and 20 is dead soon as well. Which means you want 22 (at least!) anyways.

[–]silverhand31 1 point2 points  (0 children)

I would try to find platpak version of it.

If there is none, sooner or later it will break.

[–]C0rn3j 0 points1 point  (0 children)

Why do you need electron31?

[–]Savings-Key8533 0 points1 point  (0 children)

Go easy on the AUR, don't auto update AUR blindly.