Skip to content

I can't seem to upgrade via vp upgrade #2639

Description

@julillermo

Describe the bug

I ran vp upgrade --check and noticed that an update was available (Update available: 0.3.0 → 0.3.1). However, when I run the vp upgrade command, I receive the following error.

info: checking for updates...
info: found vite-plus@0.3.1 (current: 0.3.0)
info: downloading vite-plus@0.3.1 for linux-x64-gnu...
info: installing...
error: Setup error: Failed to install production dependencies (exit code: 1). See log for details: /home/tuliog/.local/share/vite-plus/upgrade.log

Opening the said log contains the following, but I don't get why a lockfile would be involved when running vp upgrade fails regardless of whether the folder I ran it in was a project or a regular directory

=== stdout ===
Scope: all 2 workspace projects
 ERR_PNPM_OUTDATED_LOCKFILE  Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with <ROOT>/apps-ts/kami/package.json

Note that in CI environments this setting is true by default. If you still need to run install in such cases, use "pnpm install --no-frozen-lockfile"

  Failure reason:
  specifiers in the lockfile don't match specifiers in package.json:
* 3 dependencies were added: typescript@~6.0.2, vite@catalog:, vite-plus@catalog:


=== stderr ===

I believe I installed vite plus via the viteplus site instructions.
The following is present in my .zshrc:

# Vite+ bin (https://viteplus.dev)
. "$HOME/.config/vite-plus/env"

I am on the following system:

  • Linux Mint 22.3 - Cinnamon 64-bit
  • Linux Kernel 7.0.0-31-generic

Reproduction

N/A

Steps to reproduce

  • Run vp upgrade --check
  • Run vp upgrade in any folder

System Info

For `vp env current`:

VITE+ - The Unified Toolchain for the Web

Environment:
  Version  24.21.0
  Source   lts

Tool Paths:
  node  /home/tuliog/.local/share/vite-plus/js_runtime/node/24.21.0/bin/node
  npm   /home/tuliog/.local/share/vite-plus/js_runtime/node/24.21.0/bin/npm
  npx   /home/tuliog/.local/share/vite-plus/js_runtime/node/24.21.0/bin/npx

Package Manager:
  Name          pnpm
  Version       11.25.0
  Source        devEngines.packageManager
  Source Path   /home/tuliog/package.json
  Project Root  /home/tuliog
  Bin Path      /home/tuliog/.local/share/vite-plus/package_manager/pnpm/11.25.0/pnpm/bin/pnpm


For `vp --version`

VITE+ - The Unified Toolchain for the Web

vp v0.3.0

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  pnpm v11.25.0
  Node.js          v24.21.0

Used Package Manager

pnpm

Logs

Validations

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Fields

Priority

None yet

Effort

None yet

Target date

None yet

Start date

None yet

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions