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

Display currently in use version of Node.js #503

Open
nothingrandom opened this issue Oct 15, 2019 · 2 comments
Open

Display currently in use version of Node.js #503

nothingrandom opened this issue Oct 15, 2019 · 2 comments

Comments

@nothingrandom
Copy link

Feature request

Similar to the virtualenv feature, it'd be great if this was extended into node, and showed the current version being used via nvm or similar tools

@sindresorhus
Copy link
Owner

Would definitely be useful. The problem is that there are many different Node.js version managers. Do we support them all? That's a slippery slope. nvm is definitely the most popular ones, but IMHO far from the best one.

Also see #460, which would let you implement this yourself.

@sindresorhus sindresorhus changed the title Display currently in use version of node Display currently in use version of Node.js Dec 6, 2019
@alexlafroscia
Copy link

I forked pure for a time and supported this by just doing an async node --version in the current directory, much like the git checks, to account for tools that change version based on a config file. Just asking the node executable for the version means not having to worry about the version manager (although it is definitely slower ☹️ )

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

No branches or pull requests

3 participants