npm Global Update Notifications - Monitor Globally Installed npm Packages
Update-Watcher’s npm checker monitors globally installed npm packages for available updates. It reports each outdated package with its current and latest version, so you always know when your global CLI tools need updating.
The setup wizard auto-detects npm and offers to enable this checker on any system where npm is installed.
package.json), use the Web Project checker instead. It supports npm, yarn, pnpm, and Composer with auto-detection, security audits, and multi-project support.Prerequisites
- Node.js and
npminstalled and available inPATH. - At least one globally installed npm package (e.g.,
npm install -g typescript).
Adding via CLI
Add an npm global watcher:
update-watcher watch npmThe npm checker has no additional configuration flags.
Configuration Reference
The npm checker has no checker-specific options. It uses the default settings.
| Option | Type | Default | Description |
|---|---|---|---|
| (none) | – | – | The npm checker requires no additional configuration. |
YAML Configuration Example
Basic npm configuration:
watchers:
- type: npmCombined with other checkers for a full development machine setup:
watchers:
- type: homebrew
- type: npm
- type: macosHow It Works
The npm checker runs a single command:
npm outdated -g --jsonThis queries the npm registry for all globally installed packages that have newer versions available. It does not update any packages – it only reports what is outdated.
The JSON output contains each outdated package with its current, wanted, and latest versions. For global packages, the checker compares current against latest to determine if an update is available.
Tips
Global CLI tools: Many developers install CLI tools globally with npm install -g (e.g., typescript, eslint, @angular/cli, vercel). These tools do not auto-update, so they can become outdated quickly. The npm checker helps you stay on top of these updates without having to remember to check manually.
Scoped packages: The checker fully supports scoped packages like @angular/cli and @vue/cli.
To update all outdated global packages:
npm update -gOr update a specific package:
npm install -g <package-name>@latestRelated
Send npm update notifications to Slack, Discord, Email, Telegram, or any of the other 16 supported notification channels.