Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 666 Bytes

npm.md

File metadata and controls

33 lines (20 loc) · 666 Bytes

npm(1)

Install

npm install --no-fund --no-audit \<package>

Linking

Link

cd /path/to/local/node/module/foo
npm link
cd /path/to/project
npm link foo

Unlink

cd /path/to/local/node/module/foo
npm unlink
cd /path/to/project
npm unlink foo

Versioning

bump version based on semver in package.json, sets git tag and commits:

npm version major | minor | patch            # bump version, set git tag and commit
npm version minor -m "Upgrade to %s"         # bump version with custom commit message

List Packages

npm list -g --depth 0                        # list globally installed packages