Skip to content

Fixed Installer Paths

Choose a tag to compare

@anth0nylawrence anth0nylawrence released this 26 Jan 06:13

identified multiple code paths that were all using broken /usr/bin/which directly:

Multi-Strategy Detection (Bulletproof)

CLIAvailabilityChecker now tries 3 strategies in order:

  1. Direct path check (fastest) - checks 10+ well-known locations:
    - /opt/homebrew/bin, /usr/local/bin, ~/.local/bin, ~/bin, ~/.npm-global/bin, ~/.bun/bin, ~/.cargo/bin, etc.
  2. Login shell which - sources user profile:
    - Uses $SHELL -l -c "which binary" to get user's full PATH
  3. Path enumeration (most thorough) - scans dynamic paths:
    - All nvm versions: ~/.nvm/versions/node/*/bin
    - fnm, volta, asdf, mise, proto paths