Skip to content

feat(cli): prompt for node mismatch reinstall#1666

Draft
liangmiQwQ wants to merge 2 commits into
voidzero-dev:mainfrom
liangmiQwQ:codex/resolve-1598-node-mismatch
Draft

feat(cli): prompt for node mismatch reinstall#1666
liangmiQwQ wants to merge 2 commits into
voidzero-dev:mainfrom
liangmiQwQ:codex/resolve-1598-node-mismatch

Conversation

@liangmiQwQ
Copy link
Copy Markdown
Contributor

@liangmiQwQ liangmiQwQ commented May 23, 2026

Close #1598

This PR adds a prompt logic for all up-to-date global packages with a Node.js version mismatch to ask users whether to reinstall packages with the current Node. The prompt defaults to N.

This PR also adds --reinstall-node-mismatch and --ignore-node-mismatch. In CI or non-interactive environments, Reinstall will be skipped the and warns that users can pass --reinstall-node-mismatch to force it.

🤖 Generated with Codex

@netlify
Copy link
Copy Markdown

netlify Bot commented May 23, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 53e8873
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a1130d9912af90007aaf3bc

@liangmiQwQ liangmiQwQ changed the title fix(global): prompt for node mismatch reinstall feat(global): prompt for node mismatch reinstall May 23, 2026
@liangmiQwQ liangmiQwQ force-pushed the codex/resolve-1598-node-mismatch branch from 65d56b1 to 2be7684 Compare May 23, 2026 03:47
@liangmiQwQ liangmiQwQ changed the title feat(global): prompt for node mismatch reinstall feat(cli): prompt for node mismatch reinstall May 23, 2026
@liangmiQwQ
Copy link
Copy Markdown
Contributor Author

Waiting for #1659.

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.

Prompt users whether to reinstall a package installed by a different node version in vp update -g

1 participant