Skip to content

Fix install failure when /usr/local/bin does not exist - #2

Merged
tsotimus merged 2 commits into
mainfrom
feat/fix-install-script-4c10
Jul 1, 2026
Merged

tsotimus merged 2 commits into
mainfrom
feat/fix-install-script-4c10

Conversation

@tsotimus

@tsotimus tsotimus commented Jul 1, 2026 •

Copy link
Copy Markdown
Owner

Problem

Users on fresh Apple Silicon Macs hit this error during install:

mv: rename quickforge to /usr/local/bin/quickforge: No such file or directory
[ERROR] Failed to install QuickForge

The download step succeeds, but the move fails because the install directory doesn't exist yet.

Fix

  • Install to Homebrew's standard paths:
    • Apple Silicon (arm64): /opt/homebrew/bin
    • Intel (amd64): /usr/local/bin
  • Create the install directory with mkdir -p before moving the binary
  • Improve error messages if installation still fails

This matches how Homebrew itself is laid out, so quickforge should be on PATH for most Mac setups (especially after QuickForge installs Homebrew).

Workaround (until merged)

sudo mkdir -p /opt/homebrew/bin
curl -fsSL https://raw.githubusercontent.com/tsotimus/quick-forge/main/install.sh | bash
Open in Web Open in Cursor 

cursoragent and others added 2 commits July 1, 2026 12:16
On fresh Apple Silicon Macs, /usr/local/bin is often missing because
Homebrew installs to /opt/homebrew/bin instead. The install script
downloaded the binary successfully but mv failed with 'No such file
or directory' when trying to move into the non-existent directory.

Create the install directory before moving the binary, and improve
the error message when installation still fails.

Co-authored-by: Tsotne Gvadzabia <tsotimus@users.noreply.github.com>
Install to /opt/homebrew/bin on arm64 and /usr/local/bin on Intel,
matching Homebrew's conventions so quickforge lands on PATH for most
Mac setups without extra configuration.

Co-authored-by: Tsotne Gvadzabia <tsotimus@users.noreply.github.com>
@tsotimus
tsotimus merged commit cf1cc80 into main Jul 1, 2026
5 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