[BUG] Publish @anthropic-ai/claude-code-freebsd-x64 (and -arm64) native binary packages

Open 💬 10 comments Opened May 21, 2026 by ocochard

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Since 2.1.113, @anthropic-ai/claude-code switched from a bundled cli.js to a thin wrapper that copies a
per-platform native binary from optionalDependencies. Both install.cjs and cli-wrapper.cjs already include
FreeBSD in their PLATFORMS map:

  'freebsd-x64':   { pkg: PACKAGE_PREFIX + '-freebsd-x64',   bin: BINARY_NAME },
  'freebsd-arm64': { pkg: PACKAGE_PREFIX + '-freebsd-arm64', bin: BINARY_NAME },

…but the corresponding npm packages are not published (404), and the GitHub release assets contain only
darwin/linux/win32 tarballs. As a result, every release from 2.1.113 onward is unusable on FreeBSD: install.cjs
prints "Native binaries for freebsd-x64 are not available on this release channel."

The existing FreeBSD port (misc/claude-code in the official ports tree, maintained by yuri@FreeBSD.org) tracked
releases up to 2.1.110 by repackaging the bundled cli.js and running it under FreeBSD's Node.js. The
wrapper-package change makes that approach impossible — the port now has no JS to install. Without a
freebsd-x64 native binary, FreeBSD users are stuck at 2.1.112.

What Should Happen?

  1. @anthropic-ai/claude-code-freebsd-x64@<version> (and ideally -freebsd-arm64) is published to npm with the

same shape as the existing @anthropic-ai/claude-code-linux-x64 package.

  1. claude-freebsd-x64.tar.gz (and -arm64) is attached to the GitHub releases alongside the existing

darwin/linux/win32 tarballs.

  1. npm install -g @anthropic-ai/claude-code on FreeBSD then runs install.cjs, finds the matching optional

dependency, and places the native binary — same flow as Linux.

The platform-detection code already exists in install.cjs/cli-wrapper.cjs, suggesting this was anticipated;
only the binaries themselves need to be built and published.

Error Messages/Logs

Steps to Reproduce

On FreeBSD 15.x or 16-CURRENT with Node.js installed:

  npm install -g @anthropic-ai/claude-code@2.1.145
  # postinstall runs install.cjs
  # → "[@anthropic-ai/claude-code postinstall] Native binaries for freebsd-x64
  #    are not available on this release channel."
  # → Available: darwin-arm64, darwin-x64, linux-x64, linux-arm64,
  #    linux-x64-musl, linux-arm64-musl, win32-x64, win32-arm64
  claude --version
  # → fails: bin/claude.exe is still the install-time stub

Equivalently:

  npm view @anthropic-ai/claude-code-freebsd-x64
  # → 404 Not Found

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.112

Claude Code Version

2.1.145

Platform

Anthropic API

Operating System

Other

Terminal/Shell

Xterm

Additional Information

_No response_

View original on GitHub ↗

This issue has 10 comments on GitHub. Read the full discussion on GitHub ↗