Skip to content

Support vp env to manage node version #528

@hyf0

Description

@hyf0

Behavior about managing global binary

Stutus Quo

fnm

  • fnm itself doesn't manage global binary. It just relies on npm install -g.
  • Global binaries installed by npm install -g will be cleaned up after switching global node version
  • fnm use/install is used to install different node

mise

  • Same behavior as fnm for global binaries installed by npm install -g
  • Global binaries installed by mise use -g .. won't be cleaned up after switching global node version
  • mise install is used to install different node

Current proposal for vite-plus

  • Same behavior as fnm for global binaries installed by npm install -g

Questions

  • What command will us used for installing/switching between node versions?

If we refer to fnm, probably we'll use vp env use/install.

  • What command will us used for installing global binary isolately

If vp env use/install is smart enough, we could still stick with vp env use/install

Like: vp env install -g @anthropic-ai/claude-code. But in this case, what does vp env install @anthropic-ai/claude-code mean?

  • How it's different with vp install -g @anthropic-ai/claude-code vite install -g @anthropic-ai/claude-code

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions