claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Installer getting stuck at cleaning old NPM installations

Open shanepadgett opened this issue 1 year ago • 10 comments

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

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

Expected Behavior

Claude code installs

Actual Behavior

Stuck

Additional Context

shanepadgett avatar Aug 05 '25 01:08 shanepadgett

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

shanepadgett avatar Aug 05 '25 01:08 shanepadgett

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

github-actions[bot] avatar Aug 05 '25 01:08 github-actions[bot]

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

idrm avatar Aug 05 '25 07:08 idrm

+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]

HappyStoic avatar Aug 05 '25 09:08 HappyStoic

Facing the same problem on MacOS.

To reproduce:

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

lakshya-skyfall avatar Aug 06 '25 17:08 lakshya-skyfall

Same issue here, the installation procedure is stuck at:

Cleaning up old npm installations...

klipitkas avatar Aug 06 '25 18:08 klipitkas

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.

fxck avatar Aug 06 '25 18:08 fxck

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

amychen1776 avatar Aug 06 '25 20:08 amychen1776

Fixed in 1.0.70

CarlosGtrz avatar Aug 07 '25 03:08 CarlosGtrz

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.

github-actions[bot] avatar Aug 30 '25 14:08 github-actions[bot]