npm install |
install dependencies located in root package.json file. |
npm start |
start the script inside package.json file |
npm install -g xyz |
install the dependecy globally in OS with path environment |
npm install xyz |
install the dependency locally in root of the application folder |
npm install xyz --save |
install the dependency and update package.json for only production dependency |
npm install xyz --save-dev |
install the dependency and update package.json with only devlopment dependency |
npm uninstall xyz |
uninstall the dependency |
npm ls -g depth=0 |
show the list of all dependencies globally without any subdependency (depth=0) |
npm ls depth=0 |
show the list of all dependencies lobally without any subdependency (depth=0) |
npm install --dry-run |
Test & Show the full dependency tree |
npm outdated |
List outdated libraries compared to currently installe node_modules: |