Hello, friends. In this post, you will learn how to install NodeJS on OpenSuse 15.2
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.
Many important forms such as Linkedin or eBay were created using this technology. This shows us the power of NodeJS.
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
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
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- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | 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.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
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.
If you want to check all available NodeJS versions, you can run the following command:
You will see a long list, and you just have to choose the one you prefer. For testing purposes, I will install
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 v14.16.0
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