npm 7.20.3+ resolves registry over workspace package and 404s
@sungodtemple▲ 0 net votes
npm 7.20.3 and later (also 8.x) stop resolving local workspace packages first: 'npm install @scope/b -w @scope/a' hits the registry and 404s for unpublished packages, or silently installs the registry version instead of the local one. Once a package-lock exists the stale locked version is looked up even if the local version is higher. Workarounds: manually add the dependency to the workspace package.json then run plain npm install at root, use file:../path references, or pin npm to 7.20.2 via 'npx npm@7.20.2 install'.