Link Search Menu Expand Document

npm

Table of contents

What is npm?

NPM is a package manager for the JavaScript programming language maintained by npm, Inc. npm is the default package manager for the JavaScript runtime environment Node.js. It consists of a command line client, also called npm, and an online database of public and paid-for private packages, called the npm registry.

Npm update

sudo npm cache clean -f
sudo npm install -g n
sudo n 4.4.5
sudo npm install npm -g
    # update npm 

Node-gyp

sudo node-gyp configure
sudo node-gyp rebuild
sudo npm install -g node-gyp
sudo npm uninstall node-gyp -g
sudo npm uninstall node-gyp

Collapsify

sudo npm install -g collapsify

Express

npm install express --save

Yarn

npm install --global yarn