npm package manager – install and use on Centos 7
Introduction Node.js is a Javascript platform for server-side programming that allows users to build network applications quickly. JavaScript is a client-side programming language, which means it’s processed within the user’s browser. With the advent of Node.js, JavaScript can also be used as a server-side language. By leveraging Javascript on both the front-end and the back-end, development can be more consistent and more feature rich. The name npm is often referred to as an acronym for node package manager though it isn’t official. The npm tool allows users to connect to an online repository containing all the Node.js programs, plugins, modules etc to facilitate easy installation of different programs. In this article, we will explain how to install and use npm, a Node.js package management system, to manage Node.js packages on your system. We’ll be using a centos 7 system for the purpose of this demonstration. Install npm Both npm and nodejs are available in the EPEL repository. So if you have the EPEL repository enabled then you may simply use yum to install the npm package manager tool as we do in the below example. [root@linuxnix ~]# yum install npm Loaded plugins: fastestmirror, langpacks base | 3.6 kB 00:00:00 epel/x86_64/metalink | 6.5 kB 00:00:00 epel | 4.7 kB 00:00:00 extras | 3.4 kB 00:00:00 puppetlabs-pc1 | 2.5 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/4): puppetlabs-pc1/x86_64/primary_db | 135...
Read More