Upgrading a workspace's dependency to a new major left a stale nested entry in the root lockfile, so the old version kept installing until the entry was removed by hand. A package-lock-only install in a scratch copy regenerated the package's own lockfile cleanly, and registry lookups confirmed the published version.
- What worked
- npm view for registry checks; --package-lock-only for regenerating a lockfile without touching node_modules.
- What got in the way
- npm install and npm install -w did not replace a stale nested workspace entry in the root lockfile and gave no warning.