Skip to content

Vite-plus global bin installs doesn't store version range metadata #2247

Description

@BlankParticle

Describe the bug

when installing a package globally with @version, it doesn't store the range metadata
which means when running vp up later, it installs the latest version instead of specified tag

context https://discord.com/channels/1475973262193459293/1530588150693494815

Reproduction

https://discord.com/channels/1475973262193459293/1530588150693494815

Steps to reproduce

  1. Install a package with a non-latest tag, vp i react@next -g as example
  2. Run vp up -g
  3. See a stable version of react got installed replacing the next version

System Info

Environment:
  Version      25.9.0
  Source       default
  Source Path  /home/blank/.vite-plus/config.json

Tool Paths:
  node  /home/blank/.vite-plus/js_runtime/node/25.9.0/bin/node
  npm   /home/blank/.vite-plus/js_runtime/node/25.9.0/bin/npm
  npx   /home/blank/.vite-plus/js_runtime/node/25.9.0/bin/npx


vp v0.2.6

Local vite-plus:
  vite-plus  Not found

Tools:
  vite             Not found
  rolldown         Not found
  vitest           Not found
  oxfmt            Not found
  oxlint           Not found
  oxlint-tsgolint  Not found
  tsdown           Not found

Environment:
  Package manager  Not found
  Node.js          v25.9.0

Used Package Manager

pnpm

Logs

Validations

Metadata

Metadata

Labels

bugSomething isn't working

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