Replace nodejs lts for current version

On Manjaro Linux, I want to replace nodejs-lts-gallium with the current version, 20.3. I’m trying to use a program that requires version 19.1, but running it with the version installed by the package manager isn’t working. I want to try it with the current version instead. However, when I try to uninstall it, I receive the following error message:

Failed to prepare transaction

could not satisfy dependencies:
- removing nodejs-lts-gallium breaks dependency 'nodejs' required by bash-language-server
- removing nodejs-lts-gallium breaks dependency 'nodejs>=16.14' required by pnpm
- removing nodejs-lts-gallium breaks dependency 'nodejs-lts-gallium' required by stremio

Could you please provide guidance on the proper way to uninstall the LTS version and install the current one?

For one thing you should replace instead of uninstall first … which will take care of the first 2 problems.
The final one wont be fixed this way as stremio specifically requires that gallium version.
So you must remove stremio first.
ex:

sudo pacman -Rns stremio
sudo pacman -Syu nodejs

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.