Skip to content

docs: use the latest version for global update and outdated's wanted#9401

Open
liangmiQwQ wants to merge 2 commits into
npm:latestfrom
liangmiQwQ:docs/use-latest-as-wanted
Open

docs: use the latest version for global update and outdated's wanted#9401
liangmiQwQ wants to merge 2 commits into
npm:latestfrom
liangmiQwQ:docs/use-latest-as-wanted

Conversation

@liangmiQwQ
Copy link
Copy Markdown

For now, npm outdated's document shows wanted field for global npm outdated is always the same as current field, but the runtime behavior shows npm outdated prints wanted as latest version. Considering npm update's behavior, it should be a document issue.

This PR fixes it by saying the latest version instead of currently-installed version.

References

Close #3612

Copy link
Copy Markdown
Contributor

@owlstronaut owlstronaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also update npm-update.md in this pr? The "treated as if installed with a caret semver range" not has the same mismatch with actual behavior and contradicts the fix you're making here

@liangmiQwQ liangmiQwQ changed the title docs(outdated): make wanted be latest version docs: show the latest version for global update or outdated's wanted Jun 2, 2026
@liangmiQwQ
Copy link
Copy Markdown
Author

Could you also update npm-update.md in this pr? The "treated as if installed with a caret semver range" not has the same mismatch with actual behavior and contradicts the fix you're making here

I've updated in e31d9fc, and PR title is updated to fit the new scope as well. Thanks.

@liangmiQwQ liangmiQwQ changed the title docs: show the latest version for global update or outdated's wanted docs: use the latest version for global update and outdated's wanted Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] npm outdated -g outputs that it wants to upgrade to a new major version

2 participants