You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(js-executor): check Node.js version compatibility before running vp JS commands
When a user sets an incompatible Node.js version via `vp env use`, all JS-based
vp commands fail with cryptic errors. This adds an explicit check in
`ensure_project_runtime()` that compares the resolved version against vp's own
engine requirements (read from the CLI's package.json). If the version is outside
the required range an `Error::NodeVersionIncompatible` is returned with a clear
message and a hint to run `vp env use 22`.
System runtimes (version = "system") and unparseable versions are skipped silently
so `vp env off` users are not affected.
Fixes#1358
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments