Skip to content

fix(install): pin nvm toolchain when PATH resolves stale Node#274

Merged
duguwanglong merged 1 commit into
devfrom
fix/install-nvm-pinned-toolchain-stale-path
May 15, 2026
Merged

fix(install): pin nvm toolchain when PATH resolves stale Node#274
duguwanglong merged 1 commit into
devfrom
fix/install-nvm-pinned-toolchain-stale-path

Conversation

@xiami762
Copy link
Copy Markdown
Contributor

Summary

  • Introduce NODE_CMD / NPM_CMD / NPX_CMD helpers so the bash installer can call a pinned Node toolchain instead of whatever node/npm/npx happen to resolve on PATH.
  • After nvm activates a supported Node version, if the shell still resolves an older node but NVM_BIN is usable, continue the install using the nvm-managed binaries and warn the user to open a new shell.
  • Update script source assertions and add a Linux-focused bash harness test for the stale-PATH scenario.

Test plan

  • uv run pytest tests/scripts/test_install_script_sources.py tests/scripts/test_browser_runtime_configuration.py

Made with Cursor

When nvm activates a supported Node version but `node` on PATH remains older,
pin NODE_CMD/NPM_CMD/NPX_CMD to NVM_BIN for the rest of the installer run.
Adds a Linux integration test for the stale-resolution scenario.

Co-authored-by: Cursor <cursoragent@cursor.com>
@duguwanglong duguwanglong merged commit b9b63d4 into dev May 15, 2026
duguwanglong pushed a commit to DearEmma/flocks that referenced this pull request May 18, 2026
…gentFlocks#274)

When nvm activates a supported Node version but `node` on PATH remains older,
pin NODE_CMD/NPM_CMD/NPX_CMD to NVM_BIN for the rest of the installer run.
Adds a Linux integration test for the stale-resolution scenario.
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.

2 participants