Node.js is now available through most of the package management systems. Instructions on the Node.js website currently list packaged versions of Node.js for a long list of Linux, as well as FreeBSD, OpenBSD, NetBSD, macOS, and even Windows. Visit https://nodejs.org/en/download/package-manager/ for more information.
For example, on Debian and other Debian-based Linux distro's (such as Ubuntu), use the following commands:
# curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - # sudo apt-get install -y nodejs # sudo apt-get install -y build-essential
To download other Node.js versions (this example shows version 10.x), modify the URL to suit.