npm-demo-laksiriben
v1.0.0
Published
- 2.12.34 - major.minor.patch - ^2.12.34 - carrot - 2.x - when running npm update, if a minor upgrade is available, get it - ~2.12.34 - tilda - 2.12.x - when running npm update, if patch upgrade is
Readme
NPM Demo
Semantic Versioning (semver)
- 2.12.34 - major.minor.patch
- ^2.12.34 - carrot - 2.x - when running npm update, if a minor upgrade is available, get it
- ~2.12.34 - tilda - 2.12.x - when running npm update, if patch upgrade is available, get it
- 2.12.34 - - - get the exact version
List installed npm packages and their versions
npm list # only main packages
npm ls
npm list -a # --all # with sub dependancies
npm list --depth=2View dependencies/ versions
npm view <package-name>
npm view mongoose depenencies
npm view mongoose versionsInstal specific version
npm ls
npm i [email protected]
npm lsList outdated packages
npm outdated
npm -g outdatedUpdate packages
npm updateTo update major versions
npm i -g npm-check-updates
ncu
ncu -u # update package.json with latest versions
npm i # install packages in package.jsonDevelopment dependencies
npm i jshint --save-devUninstall a package
npm uninstall mongoose
npm un async
npm un -g npm-check-updatesPublish our own packages
npm login
laksiriben
G***************
[email protected]
<OTP>
npm publish