Nodesj conflict messages "nodejs-lts-hydrogen-18.20.3-1 and nodejs-22.2.0-1 are in conflict. " while updating?

:: nodejs-lts-hydrogen-18.20.3-1 and nodejs-22.2.0-1 are in conflict. Remove nodejs? [y/N]
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: nodejs-lts-hydrogen-18.20.3-1 and nodejs-22.2.0-1 are in conflict

and

error: failed to prepare transaction (could not satisfy dependencies)
:: removing nodejs breaks dependency ‘nodejs’ required by joplin-desktop
:: removing nodejs breaks dependency ‘nodejs’ required by node-gyp
:: removing nodejs breaks dependency ‘nodejs’ required by nodejs-nopt
:: removing nodejs breaks dependency ‘nodejs’ required by npm
:: removing nodejs breaks dependency ‘nodejs’ required by semver
:: removing nodejs breaks dependency ‘nodejs’ required by yarn
→ exit status 1

how to resolve?

Are both nodejs 18.20.3 and nodejs 22.2.0 needed?

You could try removing unneeded dependencies (but note what it’s going to remove in case there are things you need installed!), in case one of those is simply no longer needed:

yay -Yc

I’d remove this package and go with nodejs.

very bizarre…I rebooted and the problem went away…strange…no error message anymore.