Install Claude Code and fix the common errors
One install command, then the handful of problems people actually run into.
Install
Claude Code can be installed with Anthropic's native installer or with npm. With npm (requires a recent Node.js):
npm install -g @anthropic-ai/claude-code
Then run claude inside your project folder and sign in with your Claude account.
Common problems
- "command not found" โ the global npm folder isn't on your PATH. Restart the terminal, or check
npm config get prefixand add itsbinfolder to PATH. - Old Node.js โ update Node to a current LTS version and reinstall.
- Signed in to the wrong account โ log out inside Claude Code and sign in with the account that has your plan.
- Using an API key instead of your subscription โ if an
ANTHROPIC_API_KEYenvironment variable is set, usage may be billed to the API instead of your plan. Remove it if you want to use your subscription. - Permission errors on install โ avoid
sudo npm; use a Node version manager or the native installer instead.
AI plans at a discount, paid in crypto
Up to 73% below the official price. Pay with USDT or USDC โ confirmed automatically.
Related guides
5 MIN
What Claude Code actually is
Not an editor, not autocomplete: an agent that reads your repository, runs commands and iterates until a task is done.
6 MINHow Claude Code usage limits work
Rolling windows, a weekly ceiling, and the habits that burn your allowance fastest.
5 MINCursor vs Claude Code: not really competitors
One lives in the editor, one is an agent you hand tasks to. Many productive setups use both.