ITADN

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

#2338OpenliangmiQwQ 创建于 16 天前
bugto be discussed
L
liangmiQwQcommented
### Describe the bug Refs: https://github.com/voidzero-dev/vite-plus/issues/2091#issuecomment-5189088604 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 https://github.com/voidzero-dev/vite-plus/issues/2091#issuecomment-4914096880, but behavior changes) 2. Still skip `vp env setup --refresh`, but manually generate these shims in the install program. (Minimal)
3 条评论