DevOps Tools/Repository Management/npm

From r00tedvw.com wiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
[[DevOps_Tools/Repository_Management/npm|npm]]
 
[[DevOps_Tools/Repository_Management/npm|npm]]
 +
=Overview=
 +
'''npm''' is the Node Package Manager.  It provides access to a whole ecosystem of Node-based tools for developers to use when creating a server environment for applications or simply to aid them in local task automation.  It is also commonly used with CI tools like Jenkins to automate build, test, prod, and other phases.
 +
 +
=Installation=
 +
[https://github.com/nodesource/distributions/blob/master/README.md https://github.com/nodesource/distributions/blob/master/README.md]
 +
==Ubuntu==
 +
<nowiki>~$ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
 +
~$ sudo apt-get install -y nodejs</nowiki>
 +
 +
==CentOS==
 +
<nowiki>~$ sudo curl -sL https://rpm.nodesource.com/setup_12.x | bash -</nowiki>
 +
 +
=Verify Installation=
 +
<nowiki> ~$ which node
 +
/usr/bin/node
 +
~$ node --version
 +
v12.11.1
 +
~$ which npm
 +
/usr/bin/npm
 +
~$ npm --version
 +
6.11.3</nowiki>
 +
Make sure Node is working properly.
 +
<nowiki>~$ node
 +
Welcome to Node.js v12.11.1.
 +
Type ".help" for more information.
 +
> console.log('Node is running')
 +
Node is running
 +
undefined
 +
> .exit</nowiki>

Revision as of 16:48, 14 October 2019

npm

Contents

Overview

npm is the Node Package Manager. It provides access to a whole ecosystem of Node-based tools for developers to use when creating a server environment for applications or simply to aid them in local task automation. It is also commonly used with CI tools like Jenkins to automate build, test, prod, and other phases.

Installation

https://github.com/nodesource/distributions/blob/master/README.md

Ubuntu

~$ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
~$ sudo apt-get install -y nodejs

CentOS

~$ sudo curl -sL https://rpm.nodesource.com/setup_12.x | bash -

Verify Installation

 ~$ which node
/usr/bin/node
~$ node --version
v12.11.1
~$ which npm
/usr/bin/npm
~$ npm --version
6.11.3

Make sure Node is working properly.

~$ node
Welcome to Node.js v12.11.1.
Type ".help" for more information.
> console.log('Node is running')
Node is running
undefined
> .exit
Personal tools
Namespaces

Variants
Actions
Navigation
Mediawiki
Confluence
DevOps Tools
Ubuntu
Ubuntu 22
Mac OSX
Oracle Linux
AWS
Windows
OpenVPN
Grafana
InfluxDB2
TrueNas
OwnCloud
Pivotal
osTicket
OTRS
phpBB
WordPress
VmWare ESXI 5.1
Crypto currencies
HTML
CSS
Python
Java Script
PHP
Raspberry Pi
Canvas LMS
Kaltura Media Server
Plex Media Server
MetaSploit
Zoneminder
ShinobiCE
Photoshop CS2
Fortinet
Uploaded
Certifications
General Info
Games
Meal Plans
NC Statutes
2020 Election
Volkswagen
Covid
NCDMV
Toolbox