npm
Javascript package manager. The default package manager for node.js.
npm install <name> -E
- npm install exact versionnpm install <name> -E -D
- npm exact dependency for developmentnpm list -g --depth=0
- list globally installed packagesnpm install npm@latest -g
- upgrade npm to the latest version
Configuration
npm config ls -l | grep shell
- show what shell is used for running scripts
ncu - npm-check-updates
npm tool for checking and performing dependency upgrades
npx npm-check-updates -t patch
- list packages that can have their patch version bumped (target patch
)- add
-u
flag to apply the upgrades instead of just listing
- add
npx npm-check-updates <package> <package>
- list upgrades for specified packages. Wildcards are supported - e.g.nestjs-*
- add
-u
flag to apply the upgrades instead of just listing
- add