If you want to install the latest version, you have to use the NVM command with the specific node.js version:.You need to check the version which you are running on the system before upgrading the node.js: nvm lsĪfter that you can check for the newly available releases with: nvm ls-remote It is the best way to update the node.js is with NVM as it is a practical tool for managing multiple node.js versions.įirstly you need to start by updating the package repository with the command: sudo apt updateĪfter that you have to install the NVM by using the curl command: curl -o- | bashīy using the alternative way, you have to use wget and then run the command: wget -q0- | bashĪfter that you have to close and reopen the terminal for the system to recognize the changes or run the command: source ~/.bashrcĪfter that you need to verify if you have successfully installed NVM: nvm -version ![]() There are 3 ways to update Node.js to the latest version on Linux systems which are given below: Option 1: Update Node.js with NVM (Node Version Manager)
0 Comments
Leave a Reply. |