Previously, getLatestNpmVersion() hardcoded a fetch to registry.npmjs.org, which 404s for packages on alternate registries (private, Verdaccio, GitHub Packages, etc.). The error was silently swallowed, so users never saw update notifications for these packages. Replace the direct fetch with via the existing runCommandCapture helper. This uses the same registry resolution as npm install (reads .npmrc config chain), respects the npmCommand setting, and runs with this.cwd for correct .npmrc lookup.
62 KiB
62 KiB