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
- Install a package with a non-latest tag,
vp i react@next -g as example
- Run
vp up -g
- 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
Describe the bug
when installing a package globally with
@version, it doesn't store the range metadatawhich means when running
vp uplater, it installs thelatestversion instead of specified tagcontext https://discord.com/channels/1475973262193459293/1530588150693494815
Reproduction
https://discord.com/channels/1475973262193459293/1530588150693494815
Steps to reproduce
vp i react@next -gas examplevp up -gnextversionSystem Info
Used Package Manager
pnpm
Logs
Validations