Skip to content

DX improvement between default version and user's version #609

@haochuan

Description

@haochuan

Use case

Let's say I have a volta enabled project with package.json:

{
  "name": "my-awesome-package",
  "version": "1.0.0",
  "volta": {
    "node": "12.13.0"
  }
}

I want to update the node version from 12 to 8 in my project. Instead of volta pin node@8, I feel like it's happening a lot that people will try to run volta install node@8. This will show the message below:

Screen Shot 2019-11-19 at 09 49 26

When I see the message I always feel like I'm using node@8 in my project now. However, So the default node became @8 and project's node is still @12.

Suggestion

After you run volta install node/yarn inside a volta enabled project, it's better to let people know what's the default version and what's the projects's version, like:

success: installed and set node@8.12.0 (with npm@6.4.1) as default
You are using node@12.13.0(with npm@xxx) in the current project.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions