You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As Vite+ is used to manage Node.js runtime in more and more projects, our js_runtime directory can easily get big, as well as package_manager. Some of them may be only used for little time.
For js_runtime, we can use vp env list to see all the downloaded Node.js version, and we can remove unused ones by hand. For package_manager, however, as far as I know, Vite+ doesn't provide a way to list / remove them.
Suggested solution
We can take a look at corepack, corepack doesn't directly provide commands like list / uninstall, but it has corepack cache clean command, allows users to remove all downloaded package managers.
We may provide a similar command, like vp env clean, it will delete all installed Node runtime (except the current using one and default one) and package managers (as well as corepack managed ones)
Alternative
We can also provide a way to list the installed package managers and a way to remove them, but I think it is quite useless, and not so easy-to-use as a clean command honestly.
Activity
fengmk2 commentedon Jun 29, 2026
LGTM, but how do users discover that they need to execute this command?
liangmiQwQ commentedon Jun 30, 2026
like adding a tips in all
vp envcommands?feat(env): add `vp env clean` command (voidzero-dev#2003)