you can use below command to install a specific version of Node.js nvm install v(version number)įor example install any version like below. Now check all available nodejs versions with below command. Then, run following command to source your bash file. You can install and manage multiple versions of Node.js using node version manager on same system. If you want to install stable version then change setup with setup_12.x curl -sL | sudo -E bash -Īlso Read -> How to Install Android Studio on Ubuntu 20 04 Install nodejs using NVM you can check npm version as shown below. Nodesource package contains both nodejs binary and npm, so no need to install npm. Once nodesource repository is added to your system,install nodejs using apt. Sudo apt-get update & sudo apt-get install yarn # To install the Yarn package manager, run:Įcho "deb stable main" | sudo tee /etc/apt//yarn.list # You may also need development tools to build native addons: Output: # Run `sudo apt-get install -y nodejs` to install Node.js 14.x and npm Nodejs 14.x (current version) curl -sL | sudo -E bash. We can install specific version of nodejs version using node source repository. apt apt install nodejsĪlso Read -> How to Install MySQL Workbench on Ubuntu 20 04Ĭheck the version with below command. This article describes about different ways of installing Node.js and npm on Ubuntu 20.04 Install using ubuntu repositoryįirst we will install nodejs from the standard Ubuntu repository using apt. npm is the default package manager for Node.js Node.js is an open-source, cross-platform, back-end, JavaScript runtime environment that executes JavaScript code outside a web is also popular as a full-stack and front-end solution. Linux Install nodejs and npm on ubuntu 20.04
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |