Skip to content

Conversation

@knocte
Copy link

@knocte knocte commented Feb 6, 2026

Would fix some of the issues some people have been reporting in: openclaw/openclaw#5462

[AI assisted via Codex 5.2]

Would fix some of the issues some people have been reporting in:
openclaw/openclaw#5462

[AI assisted via Codex 5.2]
@vercel
Copy link

vercel bot commented Feb 6, 2026

@knocte is attempting to deploy a commit to the Amantus Machina Team on Vercel.

A member of the Team first needs to authorize it.

local skip_onboard=false

# Fail early if required build tools are missing (before any npm commands)
check_build_tools
Copy link

@vercel vercel bot Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check_build_tools() is called too early before Homebrew installation on macOS, and unconditionally for npm installs which don't need build tools

Fix on Vercel

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check_build_tools() is called too early before Homebrew installation on macOS

Better to fail eariler than installing anything? AFAIU homebrew wouldn't install make or cmake

unconditionally for npm installs which don't need build tools

How would we know which npm installs wouldn't need make or cmake? AFAIU there is no way to know

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You make good points about early failure being preferable to cryptic npm errors, and you're right that npm installs might also need build tools depending on prebuilt binary availability.

However, there's still a practical issue with the current placement: On macOS systems without Xcode CLT, this check will fail and exit before install_homebrew runs. Since brew install make cmake can provide these tools, it would be better to let Homebrew be installed first.

The ideal flow would be:

  1. Install Homebrew (macOS only)
  2. Then check for build tools (with option to auto-install via brew on macOS)
  3. Then proceed with Node.js and openclaw installation

This way, users on macOS get a better experience - the installer can automatically provide the missing tools via Homebrew rather than just failing. Linux users still get the early clear error message.

The current approach works, but it's not as user-friendly as it could be on macOS.

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.

1 participant