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

Support .node-version file as a source of truth for Node #983

Open
charlespierce opened this issue May 3, 2021 · 6 comments
Open

Support .node-version file as a source of truth for Node #983

charlespierce opened this issue May 3, 2021 · 6 comments

Comments

@charlespierce
Copy link
Contributor

Related to #959
Related to #282

As noted in this comment, .node-version is intended to specify a single, exact version, which is exactly what Volta requires for it's own guarantees. Since there are many different node managers that support (to some level) the .node-version file, we should investigate supporting it as well.

From that comment, the (emerging) spec for .node-version is contained in https://github.com/shadowspawn/node-version-usage

@Ravenstine
Copy link

As someone who doesn't use Volta but is on a project where people are using it, I would find this tremendously useful. Both nvm and asdf (with the nodejs plugin) support .node-version, thus making Volta compatible with it would allow us to easily specify the node version for all our tools.

@ljharb
Copy link

ljharb commented May 3, 2021

@Ravenstine nvm absolutely does not support .node-version, quite intentionally.

@Ravenstine
Copy link

@ljharb Oh, my bad, I must have been thinking of something else. The mention of asdf still applies, though.

@Lambdaphile
Copy link

Lambdaphile commented May 17, 2022

fnm does support .node-version too

@jef
Copy link

jef commented Jun 29, 2022

here is an aggregated list of who uses .node-version: https://stackoverflow.com/a/62978089/5648644

@RichardCPoint
Copy link

@Ravenstine nvm absolutely does not support .node-version, quite intentionally.

You can make nvm support .node-version in a project by making .nvmrc a symlink to .node-version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants