@obsolete29 no idea what you're using but the last thing you want is a mix of distro installed and manually "sudoed" packages somewhere in /usr/local or *gasp* $HOME
Been there. It was hell.
This is very easy on e.g. Fedora:
Where you can install NodeJS with a version to your liking this way:
> sudo dnf module install nodejs:14
See "dnf module list nodejs" for options.
(And NPM is bundled with NodeJS - you do not want incompatible versions here)
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!