[BUG] Native binary installation hangs in linux (server without npm installed)
Resolved 💬 2 comments Opened Aug 6, 2025 by CarlosGtrz Closed Aug 6, 2025
Environment
- Platform (select one):
- [X] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: Trying to install
- Operating System: Debian 6.1.140-1 (2025-05-22) x86_64
- Terminal: Windows Terminal
Bug Description
When trying to install using https://docs.anthropic.com/en/docs/claude-code/setup#native-binary-installation-beta, the process hangs with message: Cleaning up old npm installations...
The server doesn't have Claude Code nor npm installed.
Steps to Reproduce
- Login to a Linux server without npm
- curl -fsSL https://claude.ai/install.sh | bash
Expected Behavior
Claude Code gets installed
Actual Behavior
The process hangs until you process ctrl-c:
azureuser@web4:~$ curl -fsSL https://claude.ai/install.sh | bash
Setting up Claude Code...
Cleaning up old npm installations...
^C
✅ Installation complete!
Claude Code is not installed.
Additional Context
Running in a azure vm, probably not relevant.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗