Skip to content

Commit e77e129

Browse files
Anil-matchaclaude
andcommitted
fix: fall back to arm64 binary on darwin when x64 binary is missing
Silicon Mac users running x64 Node (via Rosetta or nvm default) got a 404 because muapi-darwin-x86_64 was not in the v0.2.5 release. Fall back to the arm64 binary on darwin so the install succeeds regardless of which Node arch is active. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent fd21b61 commit e77e129

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

npm/scripts/install.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ const NAME_MAP = {
2222
};
2323

2424
const key = `${process.platform}-${process.arch}`;
25-
const binName = NAME_MAP[key];
25+
// On Apple Silicon, Node may report x64 when running under Rosetta — fall back to arm64.
26+
const binName = NAME_MAP[key] || (process.platform === "darwin" ? NAME_MAP["darwin-arm64"] : undefined);
2627

2728
if (!binName) {
2829
console.warn(`[muapi] Unsupported platform: ${key}. Install via pip: pip install muapi-cli`);

0 commit comments

Comments
 (0)