Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes three broken download snippets on macOS discovered while testing all 7 shell install options on a clean macOS VM (see #9350):
fnm.bashfnm's install script defaults toUSE_HOMEBREW="true"and aborts when Homebrew isn't installed, even though macOS already hascurlandunzip. Pass-s -- --force-no-brewon macOS sofnminstalls its native macOS binary directly.fnm's installer places the binary in$HOME/Library/Application Support/fnmrather than Linux's$HOME/.local/share/fnm. Update the macOSPATHexport accordingly soeval "$(fnm env)"works immediately in the same shell.brew.bashcurl -o- ... | bashwith Homebrew's official interactive invocation (/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)") sostdinstays attached to the TTY andsudocan prompt instead of failing withInsufficient permissions to install Homebrew to "/opt/homebrew".brew shellenvon Apple Silicon (/opt/homebrew/bin/brew) and Linuxbrew (/home/linuxbrew/.linuxbrew/bin/brew) sobrew installworks immediately in the same shell.$(brew --prefix node@<major>)/bintoPATHso keg-only LTS formulas (e.g.node@24,node@22) are immediately available to the subsequentnode -v/npm -vchecks.zeroinstall.bash./0install.shto./0install.sh install homeso0installis actually installed into$HOME/bininstead of printing usage help and exiting.0install-darwin-arm64-latestarchive currently ships anx86_64binary — tracked separately in macOS download snippets: 6 of 7 options fail on a clean macOS machine (and all emit zsh '#' errors) #9350 — while this fix corrects the broken invocation across Unix systems.)Validation
fnm.bash,brew.bash, andzeroinstall.bashacrossMAC,LINUX, andWINusingapps/site/util/interpreter.ts.fnm.bashmacOS commands end-to-end on a clean macOS 27.2.1 (arm64) VM with no Homebrew and no Xcode Command Line Tools: installsfnminto~/Library/Application Support/fnm, installs Nodev26.13.1+ npm11.20.0, and persists cleanly in a newzshsession.$(brew --prefix node@26)/bin/nodeand$(brew --prefix node@24)/bin/noderesolve properly for both Current and keg-only LTS Homebrew formulas.pnpm test,pnpm lint,pnpm lint:types, andpnpm prettier— all passed.Related Issues
Refs #9350
Check List
pnpm formatto ensure the code follows the style guide.pnpm testto check if all tests are passing.pnpm buildto check if the website builds without errors.