Skip to content

npm

Basic actions

Install a package at user level:

npm install -u $PACKAGE_NAME

Install a package globaly:

npm install -g $PACKAGE_NAME

Check the version of a package:

npm show $PACKAGE_NAME version

Check the version of a package and all it depedencies:

npm list $PACKAGE_NAME

Set a private repo:

npm config set registry $REGISTRY_URL