Videos
Claude Code’s native installer is now generally available, and we recommend it as the default installation method for all new Claude Code users.
Installation script: brew install --cask claude-code
The native installer uses Homebrew rather than npm. It’s an improvement over the previous installer in a few ways:
Installing Claude Code no longer requires Node.js to be installed
The auto-updater has improved stability
It is a single, self-contained executable
We also recommend existing users migrate their installations to the new installer using claude install.
Close all open Claude Code sessions
Run
claude installin your terminalFor users running Alpine Linux, they should follow the full installation instructions for migration: https://docs.claude.com/en/docs/claude-code/setup#native-binary-installation-beta
See the docs for more installation methods across platforms: https://docs.claude.com/en/docs/claude-code/setup
Hey everyone, I'm new to Claude Code and just spent an hour in installation hell. I'm on a Mac
So apparently, there are THREE ways to install this:
npm install:
npm install -gu/anthropic-ai/claude-codeDocs say this is "standard installation"
Gets a permission denied error
Docs then warn "DO NOT use sudo"
curl installer:
curl -fsSLhttps://claude.ai/install.sh| bashCalled "beta" but actually works
Buried in a random troubleshooting article
Installs to
~/.local/bin(need to fix PATH)
sudo npm: sudo npm install -g u/anthropic-ai/claude-code
What actually makes npm work
But docs specifically say DON'T do this
"Security risks" apparently
How did you all install this?
Also, why do they recommend npm when they literally have a note saying "Claude Code has a native installation that doesn't depend on npm" - THEN MAKE THAT THE DEFAULT??
I'm not even mad, this is hilarious. Just want to know if I'm missing something obvious here