Skip to content

fix(install): improve Node.js fallback installer sources#137

Merged
duguwanglong merged 3 commits intomainfrom
fix/install-nodejs-fallbacks
Apr 17, 2026
Merged

fix(install): improve Node.js fallback installer sources#137
duguwanglong merged 3 commits intomainfrom
fix/install-nodejs-fallbacks

Conversation

@xiami762
Copy link
Copy Markdown
Contributor

@xiami762 xiami762 commented Apr 17, 2026

Summary

  • improve the bash installer's Node.js fallback flow and Chinese-source handling, including Gitee-backed nvm patching and fallback selection
  • ensure the zh bootstrap installers pass the configured npm and uv mirrors through to the underlying installers, including DingTalk dependency installation
  • expand installer source coverage with regression tests for bootstrap behavior, source selection, and Linux/macOS fallback paths

Keep macOS on a brew-first path while falling back to nvm when Homebrew is missing or fails, and make Linux prefer nvm before distro package managers. Also point the zh bash installers to the Gitee nvm mirror and add regression tests for the new fallback order and npm registry propagation.

Made-with: Cursor
Rewrite the zh nvm installer script locally before execution so its internal downloads and git clone operations use Gitee instead of falling back to GitHub. Add regression coverage for the rewritten installer flow and the updated curl download behavior.

Made-with: Cursor
Unset inherited NVM_DIR in the Linux installer fallback tests so they exercise the mocked nvm environment reliably across local shells and CI.

Made-with: Cursor
@duguwanglong duguwanglong merged commit 3a58d90 into main Apr 17, 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