BLACK FRIDAY 15% DISCOUNT
5 min ยท

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

  1. "command not found" โ€” the global npm folder isn't on your PATH. Restart the terminal, or check npm config get prefix and add its bin folder to PATH.
  2. Old Node.js โ€” update Node to a current LTS version and reinstall.
  3. Signed in to the wrong account โ€” log out inside Claude Code and sign in with the account that has your plan.
  4. Using an API key instead of your subscription โ€” if an ANTHROPIC_API_KEY environment variable is set, usage may be billed to the API instead of your plan. Remove it if you want to use your subscription.
  5. 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.

See discounted plans โ†’

Related guides