You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[RRFC] Support running outdated command against a package-lock without installing #866
Currently to run the outdated check the packages have to be installed first, this can be a comparatively slow process depending on the complexity of dependencies involved. To facilitate quicker checks particularly in a CI environment it would be useful to be able to execute the command and receive the same quality of output without having to run the install first.
Example
git clone some-node-repo
npm outdated
How
Current Behaviour
outdated does run but it gives a completely different result rendering it unusable
Package Current Wanted Latest Location Depended by
babel-plugin-syntax-dynamic-import MISSING 6.18.0 6.18.0 - api-data-test
@ZLJasonG currently npm audit has a --package-lock-only that works like this. Adding an option like that for outdated would be a non-breaking change, and you'd likely see it much sooner than changing the default here.
If something like that interested you, I'd be inclined to accept a PR that made this additive contribution.
Activity
owlstronaut commentedon May 21, 2026
@ZLJasonG currently
npm audithas a--package-lock-onlythat works like this. Adding an option like that foroutdatedwould be a non-breaking change, and you'd likely see it much sooner than changing the default here.If something like that interested you, I'd be inclined to accept a PR that made this additive contribution.
ZLJasonG commentedon May 21, 2026
Yes using a flag to get the changed behaviour would be perfectly acceptable to avoid a breaking change.
Thanks