[BUG] Installer getting stuck at cleaning old NPM installations

Status Fixed / completed
Maintainer reply None cached
Activity 10 comments · opened Aug 5, 2025 · closed Aug 22, 2025

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • 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

  1. Run the install from the website: curl -fsSL claude.ai/install.sh | bash

Expected Behavior

Claude code installs

Actual Behavior

Stuck

Additional Context

<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->

View original on GitHub ↗

10 Comments

shanepadgett · 1 year ago

I should note i've never installed the npm version, I dont even have npm. I get this message on a fresh machine

github-actions[bot] · 1 year ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/1533
  2. https://github.com/anthropics/claude-code/issues/2259
  3. 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

idrm · 1 year ago

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
HappyStoic · 1 year ago

+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]
lakshya-skyfall · 1 year ago

Facing the same problem on MacOS.

To reproduce:

curl -fsSL https://claude.ai/install.sh | bash

klipitkas · 1 year ago

Same issue here, the installation procedure is stuck at:

Cleaning up old npm installations...
fxck · 1 year ago

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.

amychen1776 · 1 year ago

I tried to installed the stable version - also not working :(

CarlosGtrz · 1 year ago

Fixed in 1.0.70

github-actions[bot] · 1 year ago

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.