The output is the version of Node.js and npm that was successfully installed on your Linux system. To verify the installation results, you can check the version of Node.js installed with the following command. So, we will try to install the latest Node.js, namely version 19.3.0 type the following command to install nvm install v19.3.0 nvm list-remoteĪll available versions will come out, sample output as below. To see the available versions of Node.js, type the following command. Next, we have to install Node.js and npm. If the output from the above command is the nvm version, your nvm installation was successful. source ~/.profileĪt this stage, your NVM should be running you can verify it by checking the version of NPM with the following command nvm -version Then make the ~/.profile file as a source by typing. When finished, save the file by pressing the hotkey CTRL X and pressing button Y to save. Paste the code below in the ~/.profile file. When finished, edit the ~/.profile file using nano. Type the following command to download the NVM source. Installing using NVM is a bit difficult, but we are given the freedom to choose the Node.js version easily. Version 19.x It is the latest version of this article if you want to use an earlier or a newer version, please look at the official NodeSource documentation. Type the following command in your Linux terminal curl -fsSL | sudo -E bash -
0 Comments
Leave a Reply. |