Just read the “Getting Started” section of npm docs.
Update npm packages
We can use npm outdated
to check which package is outdated and npm update <package name>
to update.
Versioning
The versioning number look likes “
Say the current version is 1.0.0:
- If a bug fix is publish, new version should be 1.0.1 (Patch release)
- If new features which don’t break existing features is publish, new version should be 1.1.0 (Minor release)
- If there is changes which break backward, new version should be 2.0.0 (Major release)
We can close our eyes if the update is minor or patch release. If it is Major release, we need to take extra cares.
Host npm package with github
It is possible to use github to host npm package. Not sure does it works with private github repo. REF