Skip to content

feat(toolchain): pin node version via nvm automatically#95

Merged
WhiteMuush merged 3 commits into
mainfrom
feat/doctor-node-autofix
Jun 26, 2026
Merged

feat(toolchain): pin node version via nvm automatically#95
WhiteMuush merged 3 commits into
mainfrom
feat/doctor-node-autofix

Conversation

@WhiteMuush

Copy link
Copy Markdown
Owner

What

Make the toolchain self-correct the Node version so a fresh machine works without manual nvm juggling.

  • doctor.sh: when Node is not 22 and nvm is present, report it as an auto-fixable failure that switches to Node 22 via nvm and reinstalls deps.
  • Makefile: run all npm/npx targets through scripts/use-node.sh, which selects the .nvmrc version via nvm before running, so make run/make install work even when the shell default Node is wrong.

Why

On another machine the default Node was 24; engine-strict blocked npm install (EBADENGINE), leaving node_modules incomplete and the build failing on a missing module.

@WhiteMuush WhiteMuush changed the title feat(doctor,make): pin Node 22 via nvm automatically feat(toolchain): pin node version via nvm automatically Jun 26, 2026
@WhiteMuush WhiteMuush closed this Jun 26, 2026
@WhiteMuush WhiteMuush reopened this Jun 26, 2026
@WhiteMuush WhiteMuush merged commit aa1324d into main Jun 26, 2026
11 checks passed
@WhiteMuush WhiteMuush deleted the feat/doctor-node-autofix branch June 26, 2026 22:53
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.

1 participant