npm

npm is a package manager for the JavaScript programming language.

Installation

The nodejs package contains the nodejs binary as well as npm, so you don't need to install npm separately.

Usage

To check npm version:

npm -v

To install a package:

npm i <package> # locally
npm i -g <package> # globally

To remove a package:

npm uninstall <package> # locally
npm uninstall -g <package> # globally

To update all or a particular package:

npm update [-g] [<package>]

To find outdated packages:

npm outdated [-g]

To see what's installed:

npm list [-g]

results matching ""

    No results matching ""