Skip to content

Setup vpx and vpr shims even if users choose not to let vp manage node env #2338

Description

@liangmiQwQ

Describe the bug

Refs: #2091 (comment)

For now, Vite+ skips run vp env setup --refresh when users choose not to let vp manage node env. However, vp env setup --refresh not only includes node env shims but also vpr and vpx shims. That will make these binary missed.

We have two different ways to handle this:

  1. Always run vp env setup --refresh, and set system-first mode if users don't want Vp to manage their node versions (reduce confusion like this vpx shorthand does not get set up on Windows #2091 (comment), but behavior changes)
  2. Still skip vp env setup --refresh, but manually generate these shims in the install program. (Minimal)

Metadata

Metadata

Assignees

Labels

Type

Fields

Priority

None yet

Effort

None yet

Target date

None yet

Start date

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions