Skip to content

feat(install): macOS Node install falls back to nvm without Homebrew#102

Merged
duguwanglong merged 1 commit intomainfrom
feat/macos-install-node-nvm-fallback
Apr 13, 2026
Merged

feat(install): macOS Node install falls back to nvm without Homebrew#102
duguwanglong merged 1 commit intomainfrom
feat/macos-install-node-nvm-fallback

Conversation

@xiami762
Copy link
Copy Markdown
Contributor

@xiami762 xiami762 commented Apr 13, 2026

Summary

When Homebrew is not installed on macOS, the installer now falls back to nvm (via configurable FLOCKS_NVM_INSTALL_SCRIPT_URL) to satisfy the minimum Node.js major version, instead of failing immediately.

Changes

  • Add NVM_INSTALL_SCRIPT_URL / FLOCKS_NVM_INSTALL_SCRIPT_URL and load_nvm().
  • install_nodejs_macos: try Homebrew first; if brew is missing, use curl + nvm install/use MIN_NODE_MAJOR.
  • Extend test_install_script_sources.py with source assertions and a bash harness test for the nvm path.

- Add FLOCKS_NVM_INSTALL_SCRIPT_URL and load_nvm() for nvm-based Node install
- When brew is absent but curl exists, install/load nvm then nvm install/use MIN_NODE_MAJOR
- Extend install script source tests; add bash harness test for nvm fallback path
- Sync uv.lock flocks editable version

Made-with: Cursor
@duguwanglong duguwanglong merged commit 7b27b87 into main Apr 13, 2026
2 checks passed
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