Skip to content

[BUG] Installer has issues if PATH environmental variable has already been set #56817

Description

@mattlockard

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?

Downloading the installer shows an error message

Image

Install fails and Claude keyword does not work

Manual workaround for others who run into this :

 Method 1: Using GUI (Recommended for most users)

  1. Open Environment Variables:
    - Press Win + R to open Run dialog
    - Type sysdm.cpl and press Enter
    - Click the Advanced tab
    - Click Environment Variables button
  2. Edit User PATH:
    - In the User variables section (top half), find and select Path
    - Click Edit
  3. Add the directory:
    - Click New
    - Add: C:\Users<username>.local\bin
    - Click OK on all windows
  4. Apply changes:
    - Close and reopen any terminal windows (PowerShell, CMD, Git Bash, etc.)
    - The new PATH will be available

  Method 2: Using PowerShell (Quick)

  Run PowerShell as Administrator and execute:

  [Environment]::SetEnvironmentVariable(
      "Path",
      [Environment]::GetEnvironmentVariable("Path", "User") + ";C:\Users<username>.local\bin",
      "User"
  )

What Should Happen?

Claude installer should properly prepare the PATH variable and install properly

Error Messages/Logs

Steps to Reproduce

install with PATH already used. In my case it was previously used for several other things including a python install.

Had to manually add the C:\Users\mattloc24.local\bin and the problem was resolved

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.131 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions