Now that Linux is the preferred development platform for developers visiting Stack Overflow, the need for running the latest versions of your favorite programming languages, frameworks and development environments has become more and more important, and Canonical’s Snappy technologies are the answer.
“The Node.js 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),” said NodeSource.
The advantage of using the Snap package is obvious, as you’ll always receive the latest Node.js release as soon as it’s released upstream. Thanks to Canonical’s Snappy technologies, NodeSource can deliver the latest Node.js version to Linux system supporting Snaps within hours or minutes.
Here’s how to install Node.js as a Snap on Ubuntu, other Linux distros
To install Node.js on your Snap-enabled GNU/Linux distribution, all you have to do is to run the command below. Canonical’s Snappy technologies are currently supported on Ubuntu, Debian, Linux Mint, Fedora, Arch Linux, OpenSuSE, Solus, Gentoo Linux, and some other embedded operating systems like OpenWrt and OpenEmbedded.
sudo snap install node --classic --channel=8/stable
sudo snap switch node --channel=9/stable
sudo snap refresh
sudo snap install node --classic --channel=edge