Skip to content

fix(upgrade): run pinned pnpm with managed Node#1900

Merged
fengmk2 merged 5 commits into
voidzero-dev:mainfrom
liangmiQwQ:liang/codex/fix-upgrade-node-runtime
Jun 21, 2026
Merged

fix(upgrade): run pinned pnpm with managed Node#1900
fengmk2 merged 5 commits into
voidzero-dev:mainfrom
liangmiQwQ:liang/codex/fix-upgrade-node-runtime

Conversation

@liangmiQwQ

@liangmiQwQ liangmiQwQ commented Jun 21, 2026

Copy link
Copy Markdown
Collaborator

Close #1876

The dependency install spawned by vp upgrade currently re-enters vp install, which can select a session, project, or system-first Node.js runtime. An incompatible runtime can make pnpm skip optional native binaries and leave the upgraded CLI broken.

This PR removes that recursive path. The setup flow resolves and downloads the latest managed Node.js LTS runtime, downloads the pinned pnpm version, and runs node pnpm.cjs install directly. This bypasses VP_NODE_VERSION, .session-node-version, project runtime configuration, and vp env off while keeping the install script and upgrade flow on the same managed bootstrap path.

🤖 Generated with Codex

@netlify

netlify Bot commented Jun 21, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview ready!

Name Link
🔨 Latest commit b47890f
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a37e0bb16184e0008c72a02
😎 Deploy Preview https://deploy-preview-1900--viteplus-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@liangmiQwQ liangmiQwQ marked this pull request as ready for review June 21, 2026 10:53
@liangmiQwQ

Copy link
Copy Markdown
Collaborator Author

@codex

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 23694a1943

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/vite_setup/src/install.rs Outdated
@liangmiQwQ liangmiQwQ marked this pull request as draft June 21, 2026 10:59
@liangmiQwQ liangmiQwQ changed the title fix(upgrade): use LTS Node for dependency install fix(upgrade): run pinned pnpm with managed Node Jun 21, 2026
@liangmiQwQ liangmiQwQ force-pushed the liang/codex/fix-upgrade-node-runtime branch from 6a5dec9 to d4dc75b Compare June 21, 2026 11:50
@liangmiQwQ liangmiQwQ marked this pull request as ready for review June 21, 2026 12:10
@fengmk2 fengmk2 merged commit 48eedad into voidzero-dev:main Jun 21, 2026
53 checks passed
@liangmiQwQ liangmiQwQ deleted the liang/codex/fix-upgrade-node-runtime branch June 21, 2026 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Force to use a compatible version for vp upgrade

2 participants