Node.js is now available as a snap package on ubuntu along with other snap supported linux distros. Snap feature is currently available on Ubuntu, Debian, Linux Mint, Fedora, Arch Linux, Solus, Gentoo Linux & OpenSuSE.
Node.js Is Now Available As A Snap.
From the official blog statement:
Snaps are containerized software packages designed to work across cloud, desktop, and IoT devices. They work natively on most popular Linux distributions, feature automatic updates for users, improved security, and greater flexibility for developers working in Linux environments. Their auto-updating and transactional nature is making snaps a popular choice for the delivery of desktop applications in particular.
The snap contains the Node.js runtime, along with the widely-used package manager
npm. So with a single command, developers can be up and running with their chosen version(s) of Node.js and supporting tools with no need for external repos or personal package archives (PPAs).