» npm install @anthropic-ai/claude-code
New to Claude Code - why are there 3 different ways to install this thing?
Don't forget to update your Claude CLI! It makes a huge difference
Remove claude code cli on mac
How to Install and Use Claude Code, Maybe the Best AI Coding Tool Right Now?
Videos
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
» npm install @ay-claude/cli
» npm install @schuettc/claude-code-setup
» npm install @kunihiros/claude-code-mcp