[BUG] Installer getting stuck at cleaning old NPM installations
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other:
- Claude CLI version: wont install
- Operating System: macOS 15.6
- Terminal: warp and terminal result in same
Bug Description
Trying to run the curl install script results in a message that appears stuck "Cleaning up old NPM installations"
Steps to Reproduce
- Run the install from the website:
curl -fsSL claude.ai/install.sh | bash
Expected Behavior
Claude code installs
Actual Behavior
Stuck
Additional Context
I should note i've never installed the npm version, I dont even have npm. I get this message on a fresh machine
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/1533
- https://github.com/anthropics/claude-code/issues/2259
- https://github.com/anthropics/claude-code/issues/3168
If your issue is a duplicate, please close it and 👍 the existing issue instead.
🤖 Generated with Claude Code
Same issue here.
Tried installing it inside a Docker devcontainer for .NET 9 (mcr.microsoft.com/devcontainers/dotnet:1-9.0-noble), which is based on Ubuntu 24.04, and it ended up stuck at Cleaning up old npm installations....
To replicate:
- Run
docker run -it mcr.microsoft.com/devcontainers/dotnet:1-9.0-noble /bin/bash - Switch to a non-root user by running
sudo -i -u vscode - Start the native install using
curl -fsSL claude.ai/install.sh | bash
+1
Happens to me inside a fresh debian:latest docker container. The system never touched npm whatsoever.
Steps to reproduce:
$ docker run --rm -it debian:latest bash
root@4a035f0b9ee4:/# apt update && apt install -y curl ca-certificates
...
root@4a035f0b9ee4:/# curl -fsSL https://claude.ai/install.sh | bash
Setting up Claude Code...
Cleaning up old npm installations... [FROZEN]
Facing the same problem on MacOS.
To reproduce:
curl -fsSL https://claude.ai/install.sh | bash
Same issue here, the installation procedure is stuck at:
Cleaning up old npm installations...
Seem to currently be broken on latest. Altho installing fixed version (curl -fsSL https://claude.ai/install.sh | bash -s 1.0.58) doesn't work either.
I tried to installed the stable version - also not working :(
Fixed in 1.0.70
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.