There are several good ways to install Node.js on your
computer. You may wish to refer to
https://nodejs.org/en/download/package-manager.
I recommend maintaning
the software by nvm, the Node Version Manager.
This entails installing that first.
yay -S nvm
brew install nvm
choco install nvm
Follow this in any operating system by the following command issued in a non administrator terminal. This command incidentally also gets the latest version, if used at a later date.
nvm install node
This command will install Node.js and npm the Node Package Manager. If you one day may decide to develop node software as another user, just repeat this last command from that users home directory.