Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: make npm completion stay in sync with npm updates #7997

Open
wants to merge 2 commits into
base: latest
Choose a base branch
from

Conversation

vassudanagunta
Copy link

The current instructions result in a completion script generated by the currently the installed version of npm to be written to the user's shell configuration. If improvements to the script are made in a later npm version, the user will not get these, nor will they know of this condition.

The updated instructions regenerates the script from the currently installed version of npm each time the shell initializes, thereby staying in sync.

References

This change builds on top of PR #7996 (the first commit of this PR belongs to that PR), so that PR, if acceptable, should be merged first.

The current instructions result in a completion script generated by the currently the installed version of npm to be written to the user's shell configuration. If improvements to the script are made in a later npm version, the user will not get these, nor will they know of this condition.

The updated instructions regenerates the script from the currently installed version of npm each time the shell initializes, thereby staying in sync.
@vassudanagunta vassudanagunta requested a review from a team as a code owner December 22, 2024 18:57
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.

1 participant