Once the installation is done, execute the command below to verify it: $ npm -version Run the command below to install npm: $ sudo apt install npm Installing Node.js Package Manager makes it easy to download npm packages. Step 2 – Installing Node.js Package Manager (npm) The version of Node.js package in Ubuntu repository is referred to as nodejs and not node to avert conflict with another package in the repository. This should give you the following output: v8.10.0 Next, execute the command below to verify this installation: $ nodejs -version Step one – Installing Node.jsįirst, update the packages index, then install the Node.js: $ sudo apt update In the first part of this tutorial will install Node.js and the Node.js Package Manager (NPM) from Ubuntu 18.04 repository. Node,js is a reliable package that is available from the repository of latest distribution of Ubuntu (18.04). Part 1: Installing Node.js From Ubuntu 18.04 Repository This tutorial will help you install Node.Js on Ubuntu 18.04 Bionic Beaver Linux via three options: from Ubuntu repository, from NodeSource repository, and using the Node Version Manager (NVM). The platform is primarily used to create robust back-end, server-side applications, but it’s also useful as a front-end solution. It’s a cross-platform package that allows developers to run JavaScript code on a machine like a standalone application. Node.js is a powerful, open-source JavaScript runtime environment designed to enable the implementation of server-side JavaScript code.
0 Comments
Leave a Reply. |