Installing the latest version of Node Js in SUSE Linux Enterprise Server
Technology Specialist
November 17, 2018
Rate this article
The latest version of Node Js, which is available by default for SUSE Enterprise Linux (SLES 12) is 6.x. This version of Node Js is part of “Web and Scripting Module” of SLES. To install the latest version of Node JS, we have to add additional repositories to pull the appropriate Node Js packages.
Installing Node Js in SUSE
If you have installed the default version of Node, then remove that instance before proceeding with installing the recent version. In this article we can see how to install recent version of Node (As of Nov 2018).
Install Node Js 10.x
sudo -i
zypper addrepo http://download.opensuse.org/repositories/devel:/languages:/nodejs/openSUSE_Leap_15.0 node10
zypper refresh
zypper install nodejs10
node -v
Install Node Js 8.x
sudo -i
zypper addrepo http://download.opensuse.org/distribution/leap/15.0/repo/oss/ node8
zypper refresh
zypper install nodejs8
node -v
Useful commands to manage repos
View All Repos
zypper lr -u
Remove a Repo
zypper removerepo node10 # - by repo id
zypper removerepo 2 # - by repo index
Disable a Repo
zypper modifyrepo -d node10 # - by repo id
zypper modifyrepo -d 2 # - by repo index
Enable a Repo
zypper modifyrepo -e node10 # - by repo id
zypper modifyrepo -e 2 # - by repo index
Remove a Package
zypper remove nodejs10
Leave a comment