-
Notifications
You must be signed in to change notification settings - Fork 327
Description
The volta install command is a fairly common point of confusion for new users in two ways:
- It's overloaded:
volta installboth fetches a new version and changes the user's default. This may be unexpected or it may be difficult to discover when you're only looking for the latter behavior. - It complicates teaching Volta's mental model of "install on demand". Strictly speaking, there's no reason we need to actually fetch a new Node version when setting the default - new versions are downloaded as soon as they're needed. We do it as a convenience, but by using
installas the verb, it gives the impression that "installing" is a necessary step. That impression is compounded by the fact that in most of the other Node version management tools, users do have to manually install a version in order to use it.
Changing the command verb to something else (e.g. volta default, volta global, etc.) could help alleviate both of these concerns. It makes it more clear that the important part of the command is changing the default, rather than fetching the version. It also separates the commands from the other managers, helping make the mental model (Declare Your Tools, Don't Install Them) more grokkable.
It may result in an increase of questions like "How do I install a version?", but then we can answer those questions in a way that leads more directly to teaching the Volta paradigm: "You don't have to, you tell Volta which version you want to use and it will automatically install it"