Skip to content

Latest commit

 

History

History
25 lines (13 loc) · 581 Bytes

npm.md

File metadata and controls

25 lines (13 loc) · 581 Bytes

NPM Cheat Sheet

NPM Commands

npm install - Installs all dependencies

npm ci - Clean install of all dependencies (mainly used in cicd environments)

npm ls -a - Prints all modules with dependencies in a tree structure

NPM Mirror

npm set registry https://registry.npmjs.org/ - Sets npm to a different than the default registry

NPM Version Management with n

n - Selects a node version

https://github.com/tj/n

Additional Notes

package-lock.json

https://stackoverflow.com/questions/44206782/do-i-commit-the-package-lock-json-file-created-by-npm-5