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

[feature request] display the previous version #3495

Open
vdegenne opened this issue Dec 15, 2024 · 4 comments
Open

[feature request] display the previous version #3495

vdegenne opened this issue Dec 15, 2024 · 4 comments
Labels
feature requests I want a new feature in nvm!

Comments

@vdegenne
Copy link

vdegenne commented Dec 15, 2024

When upgrading (or downgrading, either way) NodeJS through nvm it would be nice to see the from version, e.g.

$ nvm i stable

Current version: v22.0.0 (npm v9.0.0)
Now using node v23.4.0 (npm v10.9.2)

(It's just a small satisfaction to see if anything got updated)

@ljharb
Copy link
Member

ljharb commented Dec 15, 2024

Usually i think people put the node version in their prompt, so they can always see that change.

@vdegenne
Copy link
Author

vdegenne commented Dec 15, 2024

What do you mean by "prompt" ?

You mean people type node --version before running nvm?

Not so sure about that, or if they do, this addition is there to help them (that is the reason.)
Or sometimes people forget to check their version and update using nvim i stable but after the update have no clue what version they were on.

@ljharb
Copy link
Member

ljharb commented Dec 15, 2024

no, i mean like the $ that displays before you type your command - that's a shell prompt. mine has the current git branch, current nvm node version, and the computer name.

@vdegenne
Copy link
Author

ah shell prompt. That's oddly specific, I tend to keep it simple, especially because I don't use terminal just to do nodejs stuff. Also I am curious how many people actually display their nodejs version in their prompt.

Anyways that was just a suggestion, I can personally live without, but for a versioning manager I feel like that's the least that should be display in the output.

Image

@ljharb ljharb added the feature requests I want a new feature in nvm! label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature requests I want a new feature in nvm!
Projects
None yet
Development

No branches or pull requests

2 participants