Version requirement resolution failed with pamac

Hello,
trying to install n8n through pamac I get a conflict with nodejs version :

Erreur: La préparation de la transaction a échoué:
la satisfaction des dépendances a échoué:
- impossible de satisfaire la dépendance « nodejs>=18.17.0 » requise par n8n
- la suppression de nodejs casse la dépendance « nodejs » requise par node-gyp
- la suppression de nodejs casse la dépendance « nodejs>=20.17.0 » requise par npm

Output is in french but basically n8n requires nodejs>=18.17.0 and nodejs v23.9.0 is currently installed so what am I missing ? Everything should be fine isn’t it ? Every package has been installed using pamac.
Some forum recommend using nvm, but it’s depecrated in arch documentation. Any idea ?

To be able to ask the community for assistance it is required that you remove all alien packages (created using a custom PKGBUILD e.g. AUR)

Open a terminal

Create a list of alien packages

pacman -Qqem > ~/alien-package-list.txt

Unconditionally remove all aliens

sudo pacman -Rdd $(pacman -Qqem)

Optionally rebuild the mirrorlist

sudo pacman-mirrors --continent

Then run a full system sync

sudo pacman -Syu

Finally evaluate the content of the alien-package-list.txt and rebuild only those required for your day-to-day operation.

Thx,
I did all of that, helped me clean some minors old packages. Now the installation is clean and I only have 5 AUR packages freshly built :

dsnote
libreoffice-extension-grammalecte-fr
openlp
spectre-meltdown-checker
ttf-ms-fonts

Nothing changed when I try to install n8n though.

That is because n8n from the AUR conflicts with nodejs>=23:

pamac info n8n
Name                  : n8n
Version               : 1.78.0-5
Description           : Free and source-available fair-code licensed workflow automation tool. Easily automate tasks across different
                        services.
URL                   : https://n8n.io
Licenses              : custom:Sustainable Use License
Repository            : AUR
Groups                : --
Depends On            : nodejs>=18.17.0
Optional Dependencies : --
Make Dependencies     : npm
Check Dependencies    : --
Provides              : --
Replaces              : --
Conflicts With        : nodejs>=23
Maintainer            : lapsus
First Submitted       : Thu 20 Jun 2024 01:02:04
Last Modified         : Sat 15 Feb 2025 09:27:59
Votes                 : 2
Out of Date           : --

The current version of nodejs in the repos is 23.9, which means it conflicts with n8n:

mbn info nodejs -q | grep -Ev 'Name|Repository|Packager'
Branch         : archlinux
Version        : 23.9.0-1
Build Date     : Thu 27 Feb 2025 06:04:37 
Branch         : unstable
Version        : 23.9.0-1
Build Date     : Thu 27 Feb 2025 06:04:37 
Branch         : testing
Version        : 23.9.0-1
Build Date     : Thu 27 Feb 2025 06:04:37 
Branch         : stable
Version        : 23.9.0-1
Build Date     : Thu 27 Feb 2025 06:04:37 

mbn can be found in the manjaro-check-repos package

So you cannot currently have n8n from the AUR & nodejs from the repos installed at the same time.

Nobody seems to have logged any issues on the AUR (en) - n8n though. However, a quick look at the PKGBUILD changes shows the conflict was added only a month ago:

2025-02-14	docs: add previous maintainer as contributor	Yakov Till
2025-02-14	n8n: update to 1.78.0-5 (cleaned up)	Yakov Till
2025-02-14	fix: add conflicts with nodejs>=23, clean up dependencies and update maintainer	Yakov Till
2025-02-14	fix: add conflicts with nodejs>=23 to prevent installation with incompatible ...	Yakov Till
2025-02-14	fix: adjust nodejs version constraints to match upstream requirements (pkgrel 3)	Yakov Till
2025-02-14	fix: specify compatible nodejs versions in dependencies (pkgrel 2)	Yakov Till