# Install ncu globally
npm install -g npm-check-updates
# Run it to update all version hints in package.json
# (dependencies and dev-dependencies)
$my-project ncu -u
# run the update
$my-project npm update
# Install if `/node_modules` are not present yet
$my-project npm i
Source: nodejs.dev
$my-package npm publish
Source: npm Docs
List dist-tags
$my-package npm dist-tag ls
Publish with dist-tag
$my-package npm publish --tag <tag>
Add dist-tag to a specific version
$my-package npm dist-tag add <package-name>@<version> [<tag>]
# Example
$my-package npm dist-tag add [email protected] stable
Remove dist-tag
$my-package npm dist-tag rm <package-name> <tag>