![]() ![]() ![]() Verify that the Node.js and npm were successfully installed by printing their versions: node -version v12.16.3 npm -version 6.14.4 The nodejs package contains both the node and npm binaries. ![]() Once the NodeSource repository is enabled, install Node.js and npm by typing: sudo apt install nodejs If you need to install another version, for example 14.x, just change setup_12.x with setup_14.x The command will add the NodeSource signing key to your system, create an apt sources repository file, install all necessary packages and refresh the apt cache. To install Node.js and npm from the NodeSource repository, follow these steps:Įnable the NodeSource repository by running the following curl We’ll install the current LTS version of Node.js, version 12. At the time of writing, NodeSource repository provides the following versions - v14.x, v13.x, v12.x, and v10.x. Use this repository if you need to install a specific version of Node.js. ![]() NodeSource is a company focused on providing enterprise-grade Node support and they maintain a repository containing the latest versions of Node.js. Installing Node.js and npm from NodeSource # It is best to consult the documentation of the Node.js application that you use to find out which Node.js versions are supported. Developers should prefer installing Node.js using the NVM script.Ĭhoose the installation option that is appropriate for your environment. If you need Node.js only as a local runtime for deploying Node.js applications then the simplest option is to install Node.js from the NodeSource repository. The same instructions apply for any Ubuntu-based distribution, including Kubuntu, Linux Mint and Elementary OS. In this tutorial, we will show you several different ways of installing Node.js and npm on Ubuntu 18.04. Npm is the default package manager for Node.js and the world’s largest software registry. Install NodeJS on Ubuntu - Quick & Simple ![]()
0 Comments
Leave a Reply. |