OmniscioGuidesNative binary not installed
Error: claude native binary not installed
Until that postinstall step runs, claude is a placeholder script and the real program was never placed. Nothing is wrong with your PATH, your account or your shell.
Last checked against Anthropic's documentation on November 25, 2026. By the Omniscio team. Updated .
What is the exact message?
On macOS and Linux it is this block, printed when you run claude:
Error: claude native binary not installed.
Either postinstall did not run (--ignore-scripts, some pnpm configs)
or the platform-native optional dependency was not downloaded
(--omit=optional).
Run the postinstall manually (adjust path for local vs global install):
node node_modules/@anthropic-ai/claude-code/install.cjs
Or reinstall without --ignore-scripts / --omit=optional.The path in it is relative, which is why the line says to adjust it. For the global install most people have, put the global folder in front: node "$(npm root -g)/@anthropic-ai/claude-code/install.cjs". npm root -g prints that folder.
What does it mean?
The @anthropic-ai/claude-code npm package downloads the native binary as a per-platform optional dependency, such as @anthropic-ai/claude-code-darwin-arm64. Until the package's postinstall step runs, claude is a placeholder script.
So there are two things that can go missing, and the message names both: the postinstall step that places the binary, and the platform package that holds the binary in the first place.
There is no JavaScript fallback. Anthropic states that the native binary is delivered only as an optional dependency, so a skipped download leaves nothing to run.
Which case am I in?
One command separates the two halves of the message. It lists the platform packages your install holds:
ls "$(npm root -g)/@anthropic-ai"- A
claude-code-darwin-*,claude-code-linux-*orclaude-code-win32-*package is listed: the download happened and only the placement was skipped, which is the case the postinstall command repairs. - Nothing of that shape is listed: the download was skipped. The optional-dependency, platform and mirror causes below are the ones to check.
Anthropic lists five causes. They are not alternatives to each other: npm 12 skipping the step, optional dependencies turned off, install scripts turned off, a platform Anthropic does not build for, then a mirror that is missing the package.
- npm 12 skips the postinstall step by default. When you install or update Claude Code with npm 12, npm finishes the install without running that step. Run
npm --version: a number starting with 12 is this cause, unless your npm config already allows the scripts, and any other version means a different cause on this list. - Optional dependencies are turned off. Check for
--omit=optionalon npm,--no-optionalon pnpm or--ignore-optionalon yarn, and check that.npmrcdoes not setoptional=false. Reinstall without the flag, because the platform package was never downloaded. - Install scripts are disabled.
--ignore-scriptsand some pnpm configurations skip the postinstall step but still download the platform package, which is the caseinstall.cjscan repair. - The platform is not one Anthropic ships a binary for. Prebuilt binaries exist for
darwin-arm64,darwin-x64,linux-x64,linux-arm64,linux-x64-musl,linux-arm64-musl,win32-x64andwin32-arm64, and nothing else. On FreeBSD the installer reports the platform as unsupported. - A corporate npm mirror is missing the platform package. The mirror has to carry all eight
@anthropic-ai/claude-code-*platform packages as well as the meta package.
How do I fix it?
Do this first: place the binary you already have
Run the command the message gives, with your install's path. For a global install:
node "$(npm root -g)/@anthropic-ai/claude-code/install.cjs"This is the fix for a disabled install script, and for npm 12's skipped step when the platform package did arrive.
If that does not place it: launch through the wrapper
When postinstall cannot run in your environment at all, the wrapper finds the downloaded package and launches it, at the cost of an extra Node process on each start:
node "$(npm root -g)/@anthropic-ai/claude-code/cli-wrapper.cjs"If the wrapper prints Could not find native binary package, the download was skipped rather than misplaced. That is not a postinstall problem: remove --omit=optional, --no-optional or --ignore-optional, check .npmrc, and reinstall.
Keep it fixed: pick one
- On npm 12, for a global install, allow the package's scripts. Read the current value first:
npm config get allow-scripts. If it is empty, runnpm config set "allow-scripts=@anthropic-ai/claude-code" --location=user. If it lists packages, put yours into that value, because the command replaces the whole list. Then reinstall. - Or leave npm behind. Install the native build with
curl -fsSL https://claude.ai/install.sh | bash— on Windows PowerShell,irm https://claude.ai/install.ps1 | iex— then uninstall the npm package. Updates then do not use npm, so the npm 12 skip no longer applies to them. Anthropic points a local install in~/.claude/local, and a project where pnpm 9, pnpm 10 or Yarn 1 runsnpm install, at the native installer for this reason. - On a corporate mirror, fix the mirror. Ask whoever runs it to mirror the eight platform packages, then reinstall.
On npm 12.0.x, update npm to 12.1 or later before you save the setting: Anthropic notes that project installs started by an npx tool or an npm run script can fail with EALLOWSCRIPTS once it is saved. An EACCES during the reinstall is the point where Anthropic says to switch to the native installer rather than rerun it with sudo.
What does not help
- Running
install.cjsover and over. It cannot place a binary that was never downloaded. If the wrapper also cannot find the package, fix the optional-dependency cause first. - Reinstalling with the same flags. The same
--omit=optionalor--ignore-scriptsproduces the same result on the next install. - Retrying with
sudo. Anthropic's advice for a permissions failure on npm 12 is to switch to the native installer rather than rerun it withsudo, because Claude Code runs npm withoutsudowhen it updates itself, so automatic updates would fail the same way. - Editing the placeholder. It is not the program, and npm writes it again on the next install.
How do I know it is fixed?
claude --versionprints a version number instead of the placeholder's message.claudeopens a session in a terminal.ls "$(npm root -g)/@anthropic-ai"lists a package with your platform in its name, which is the folder the binary came from.- After your next update, run
claude --versionagain. On npm 12 an install that still skips the step fails the same way on the update.
On Windows none of the message's lines appear. bin/claude.exe there is the same placeholder written as a shell script, so PowerShell and CMD say they cannot run the file. The cause and the fixes are the same, with Windows paths.
Where these answers come from
- Anthropic's install troubleshooting page, the native binary section, read November 25, 2026: the message block, the placeholder, the five causes, the
install.cjsandcli-wrapper.cjscommands, and the platform list. - The same page, fixing an npm 12 install, read November 25, 2026: the
npm --versioncheck, theallow-scriptssetting with its steps and its preconditions, the switch to the native installer and thesudowarning. - Anthropic's setup page, read November 25, 2026: the native install command used in the fix list.
Common questions
What does claude native binary not installed mean?
The npm package installed, but the step that places the native binary did not run, so what you are calling is the placeholder script npm wrote instead. Anthropic says the postinstall step or the platform optional dependency was skipped.
How do I install the binary without reinstalling?
Run the postinstall step by hand, with your install's path: node "$(npm root -g)/@anthropic-ai/claude-code/install.cjs" for a global install. That is the command the message itself gives, and it works when the platform package was downloaded but never placed.
Why does this keep coming back after every npm install?
On npm 12 the install scripts are skipped unless your config allows them. For a global install, Anthropic's fix is to put @anthropic-ai/claude-code in allow-scripts in your user npm config, reading the current value first because the command replaces the list, or to switch to the native installer, whose updates do not use npm. On npm 12.0.x, update npm first; for a local install, or where pnpm 9, pnpm 10 or Yarn 1 runs the install, Anthropic says to use the native installer instead.
Does running install.cjs always fix it?
Only when the platform package was downloaded. Anthropic says running install.cjs again cannot place a binary that was never downloaded, so if the optional dependency was omitted or your registry mirror lacks it, reinstall without the flag or fix the mirror first.