-
Notifications
You must be signed in to change notification settings - Fork 211
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: Get node version from packages.json engines.node #260
Comments
the engines field doesn't specify a version of node, it specifies a version range (even if it's a range of 1). It's not appropriate to impose those semantics on engines.node. See #184. |
Thanks for looking at this. When I push my project to heroku, heroku looks at the node.engine and fetches that latest matching version before building and starting up. So there is one example of it already being done. Further the problem we are facing is that people are downloading my repo and building it in order to contribute to our project. But we are having more and more problems with different versions of nodes not working. And npm will complain if the version doesn't match but it won't take action. But then when switching to some other project the node version should change to whats appropriate for that. I see projects pushing docker images and virtual machines that already have the right versions of node built in - but this is a weighty solution to the problem. I dream of a future where we just tell people to install nvs instead of node and then they can 'cd' from project to project and always be on the right version of node. If you point out where to get started I might give it a try sometime. Again thanks this. |
In the mean time, I added this to my .bashrc file:
Thanks again for nvs! |
For interest, I added However, I also added an Reference: tj/n#644 |
I love the idea of being able to use a different version of node with different directories. In my case projects are github repos and the version of node to use is already specified in packages.json engines.node I wish nvs could just use that instead of having me duplicate the information in some other file.
Thanks!
The text was updated successfully, but these errors were encountered: