

I hope you enjoy our tutorial, Let me know incase you encounter any error I would love to answer that.Earlier we have done node.js installation through source package, you can find here that post from below link. NVM installed, Getting GLIBC and GLIBCXX Error on Linux In case you've encounter errors such as glibc or glibcxx error not found, I got a solution for you pare.

To switch to any version installed by nvm. To install the latest stable version, type: nvm install stable For example, to install version v16.2.0, type: nvm install v16.2.0 NVM can install any of these versions available in the list. You will see a long lists of available version up-to the latest. To check the available lists of available node version that you can use. Then source ~/.bash_profile to set up environment for NVM: source ~/.bash_profile STEP 3 Then paste the code below, then hit crtl + o + enter then ctrl + x to close the file. For example i will be using ~/.bash_profile nano ~/.bash_profile

Using nano or vim, open one of the files above. Normally, it was located from these file paths: To do that, use the following cURL or Wget command:Īs of the time of writing, we are using NVM v0.38.0 curl -o- | bashĪfter running the above commands, it's time to add a variable to your bash command. To install or update your NVM, you should run the install script. In this tutorial, I will show you how to install different nodejs version while not messing up you're current server or development setup. Node.js is one of the most popular open-source platforms that you can easily use to build your backend or rest API that can easily scale because it can handle simultaneous connections which supports a non-blocking, event-driven server, due to its single-threaded nature.Īs the team continues doing some upgrades, some of our programs are still stuck in the old version of node.js which sometimes we encounter some issues when we are trying to update from the latest version.
