![]() Read Also: Install Apache on Ubuntu 20.04 LTS Option 3: Installing Node.js and NPM using NVM ![]() Now you can verify Node.js and NPM Version with this command: node -v Run the next command as a person with sudo privileges to obtain and execute the NodeSource set up script: curl -sL | sudo -E bash -Īs soon as the NodeSource repository is enabled, set up Node.js and npm: sudo apt install nodejs ![]() It maintains an APT repository containing multiple Node.js versions.Īt the time of writing, the NodeSource repository provides the following versions: To install a different version of Node.js, you can use a PPA (personal package archive) maintained by NodeSource. NodeSource is a company focused on providing enterprise-grade Node support. ![]() Option 2: Installing Node.js with Apt Using a NodeSource PPA This will allow you to install modules and packages to use with Node.js.Īt this point, you have successfully installed Node.js and npm using apt and the default Ubuntu software repositories. You can do this by installing the npm package with apt: sudo apt install npm In most cases, you’ll also want to also install npm, the Node.js package manager. Once installed, check the node.js version: node -v The recommended way to install Node.js on your Ubuntu 20.04 LTS is by using the apt command to install the stable default Node.js version from the standard Ubuntu Repository: sudo apt install nodejs Option 1: Installing Node.js with Apt from the Default Repositories
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |