we need to run the below command for installing node js & npm on Ubuntu. Stay connected for more interesting How-To guides and Infrastructure setups tutorials. Step 3: Now Install Node.js and NPM On Ubuntu. Sudo apt-get update & sudo apt-get install yarn To install the Yarn package manager, run: curl -sL | sudo apt-key add -Įcho "deb stable main" | sudo tee /etc/apt//yarn.list In this cloud tutorial, we will cover how you can set up Node.js applications on Ubuntu 20.04 for a production environment. This will get you the most recent version of the installation script. Copy the curl command from the README file that displays on the main page. Output The following NEW packages will be installed: nodejs 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. To install NVM on your Ubuntu 20.04 machine, visit the project’s GitHub page. Open your terminal and type this command. This command will configure Node.js APT repository to your OS.Īfter adding the repository, install Node.js 12|10 LTS on Ubuntu 18.04 /16.04 / Debian 10/9 using the apt package manager. Install Node.js on Ubuntu 20.04 Having pulled the script, its now time we do the installation. Sudo apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates After adding the repository, we can use the default system package manager which is APT to install the current or LTS version of Nodejs Javascript.
0 Comments
Leave a Reply. |