I usually work on macs, so I use homebrew to install/update node.
On other systems I would suggest using whatever the standard package manager is as recommended here: https://nodejs.org/en/download/package-manager/#arch-linux
This might involve using
sudo in some cases or installing as root, but you shouldn’t do
sudo npm anything.