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

Proposal: Add a function to automatically switch node version according to the project root configuration file. #28

Closed
kiccer opened this issue Mar 3, 2022 · 2 comments

Comments

@kiccer
Copy link

kiccer commented Mar 3, 2022

What is the problem this feature will solve?

I am using Node on windows 10 and I maintain several projects with different versions of Node. I have installed NVM to control the Node version, which is convenient but not enough. It would be nice if Node versions could be switched automatically according to the project!

What is the feature you are proposing to solve the problem?

I have an idea, which I don't know if it's possible to implement, and it goes like this

When a program calls Node, this shell will first determine whether the program is in the root directory with a configuration file specifying the Node version, and if so, the corresponding version of Node will be used, otherwise the globally specified Node version will be used.

I guess this feature will help a lot of people to improve their work efficiency, and I look forward to getting attention for this requirement, tks.

What alternatives have you considered?

No response

@Ayase-252
Copy link
Member

I think it is better to implemented in a node version manager like nvm. One node would not know where other nodes are installed.

@Trott
Copy link
Member

Trott commented Mar 3, 2022

Transferring seems to be stuck. I'm going to close this and we'll just leave it in the node main repo.

@Trott Trott closed this as completed Mar 3, 2022
This issue is being transferred. Timeline may not be complete until it finishes.
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

3 participants