![]() ![]() Installing Node.js through this method is extremely easy. Go to the nvm GitHub repository for more information. As mentioned earlier, Debian 11 contains the Node.js package by default. Not only does nvm allow you to run newer versions of Node.js and npm, you can install and migrate any desired versions you’d prefer. To set a default Node.js version to be used in any new shell, use the alias default: nvm alias default node In any new shell, you’ll need to tell nvm which version to use: nvm use 5.0 You need to follow these steps to install Node.js and npm from the NodeSource repository. Use the following command to check installed version of Node. ![]() ![]() To download, compile and install the latest version of Node: nvm install 5.0 Once the repository is added, you can begin the installation of Node.js 17 on Ubuntu / Debian / Linux Mint. That command will output nvm if the installation worked. Adding the Node.js repository To get the repository added for Node.js v12. To verify that nvm has been successfully installed after you reopen the terminal, use: command -v nvm You will be asked to close and reopen the terminal. You can install and update Node Version Manager, or nvm, by using cURL: curl -o- | bash Installation process Check the Ubuntu version by using the following command Install the curl package by using the following command Download the node. Use apt-get to install the build-essential package: sudo apt-get install build-essential checkinstallĮmploy a similar process to get libssl-dev: sudo apt-get install libssl-dev This can save quite a bit of time going back and forth between versions. This handy tool works as a command line to install and manage multiple releases of Node.js on your system. By default, Ubuntu does not come with these tools - but they can be installed in the command line. Install Node.js with NVM An alternative method to install Node.js on Debian is to use NVM, which is short for Node Version Manager. Done Run sudo apt-get install -y nodejs to install Node.js 11.x and npm You. ![]() Open the terminal and install the build-essential and libssl-dev packages if needed. Procedure to install Node.js 11.x, 12.x, 14.x on Ubuntu 16.x/18.x. First, make sure you have a C++ compiler. ![]()
0 Comments
Leave a Reply. |