6.4 C
Senior Writer and partner

Install NodeJS on OpenSUSE 15.2

Hello, friends. In this post, you will learn how to install NodeJS on OpenSuse 15.2

A brief review of NodeJS

If you are an expert developer or already have some experience with it, you will know it is NodeJS. However, in case you are starting with it, it is a good idea to know what NodeJS is first.

NodeJS is a technology that allows running Javascript on the server-side using Google’s V8 engine. It is a real revolution in the way web applications are developed because it reduces the asymmetry of client and server performance.

Many important forms such as Linkedin or eBay were created using this technology. This shows us the power of NodeJS.

An advantage of NodeJS is that its syntax is similar to that of Javascript and therefore its learning curve decreases a lot.

Install NodeJS on OpenSUSE – Using the main repositories

NodeJS is available from the official distribution repositories. That’s why the process is made easier.

So, open up a terminal and update OpenSUSE

sudo zypper up

You can then search the repositories for NodeJS to see what packages are available.

sudo zypper search nodejs
1.- Installing NodeJS on OpenSUSE
1.- Installing NodeJS on OpenSUSE

As you can see we can choose between several available versions like 8, 10, 12, or 14 so it’s your choice.

In this case, I will choose version 10 and for that, I will run

sudo zypper in nodejs10

In the end, you will be able to check the installed version with the command

node -v

With NVM we can get any version of NodeJS

Yes, using the NVM tool we can get any version of NodeJS. This is useful if we want to use a particular one for a certain program or to test the latest versions.

To do this, download NVM with the command wget

wget -qO- | bash

=> Downloading nvm as script to '/home/angelo/.nvm'
=> Appending nvm source string to /home/angelo/.bashrc
=> Appending bash_completion source string to /home/angelo/.bashrc
=> Close and reopen your terminal to start using nvm or run the following to use it now:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/" ] && \. "$NVM_DIR/" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
source ~/.bashrc

At the end of the download and installation, you have to refresh the bashrc file so that the command is available from the full prompt.

source ~/.bashrc

If you want to check all available NodeJS versions, you can run the following command:

nvm ls-remote
2.- Using NVM
2.- Using NVM

You will see a long list, and you just have to choose the one you prefer. For testing purposes, I will install 14.16.0.

nvm install 14.16.0

Just like that, we will have NodeJS installed. To check the installed version, just check the installed version.

node -v

So, enjoy it


NodeJS is a cutting-edge technology for the development of web applications. In this post, you have learned two different ways to install it on OpenSUSE 15.2

- Advertisement -


Please enter your comment!
Please enter your name here

Donate to Osradar

Latest article