Skip to content

[BUG] : fresh native installation raise warning about npm #9666

Description

@S1M0N38

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

I've removed Claude code and related files entirely from my computer (macOS 26).

Then I've installed Claude code using

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

So I'm expecting a clean single installation, but when running claude doctor, I get

 claude doctor

 Diagnostics
 └ Currently running: native (2.0.19)
 └ Path: /Users/simo/.local/bin/claude
 └ Invoked: /Users/simo/.local/share/claude/versions/2.0.19
 └ Config install method: native
 └ Auto-updates enabled: default (true)
 └ Search: OK (bundled)
 Warning: Multiple installations found
 └ npm-global at /Users/simo/.local/bin/claude
 └ native at /Users/simo/.local/bin/claude
 Warning: Leftover npm global installation at /Users/simo/.local/bin/claude
 Fix: Run: npm -g uninstall @anthropic-ai/claude-code

 Press Enter to continue…

The file at /Users/simo/.local/bin/claude is a symlink to the /Users/simo/.local/share/claude/versions/2.0.19, however Claude doctor thinks that this is a NPM installation. I think this is a bug.

What Should Happen?

No warning

Error Messages/Logs

Steps to Reproduce

describe above

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.0.19

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:packagingbugSomething isn't workinghas reproHas detailed reproduction stepsplatform:macosIssue specifically occurs on macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions