Skip to content

NPM package manager

Andy Gill edited this page Aug 27, 2016 · 5 revisions

Links

About npm the package manager for nodejs and JavaScript.

List

List all packages installed, local/global, by what was asked for. Local packages stored in node_modules. Default is local.

% npm list 
% npm list -g 
% npm list --depth=0

install/uninstall

% npm install foobar
% npm uninstall foobar

To build a package

% npm install
% npm run build 

New Package

% npm init

Add "private":true to package.json

% npm install --save express

Also adds to package.json

Clone this wiki locally