status-desktop/devuser_guide/content/docs/help/how-to-update.md

1.1 KiB

title description lead date lastmod draft images menu weight toc
How to Update Regularly update the installed npm packages to keep your Doks website stable, usable, and secure. Regularly update the installed npm packages to keep your Doks website stable, usable, and secure. 2020-11-12T13:26:54+01:00 2020-11-12T13:26:54+01:00 false
docs
parent
help
610 true

{{< alert icon="💡" text="Learn more about <a href="https://docs.npmjs.com/about-semantic-versioning">semantic versioning and <a href="https://docs.npmjs.com/cli/v6/using-npm/semver#advanced-range-syntax">advanced range syntax." >}}

Check for outdated packages

The npm outdated command will check the registry to see if any (or, specific) installed packages are currently outdated:

npm outdated [[<@scope>/]<pkg> ...]

Update packages

The npm update command will update all the packages listed to the latest version (specified by the tag config), respecting semver:

npm update [<pkg>...]