[GH-ISSUE #14161] cant open claude code in a specific folder #55747

Closed
opened 2026-04-29 09:41:12 -05:00 by GiteaMirror · 7 comments
Owner

Originally created by @chille9 on GitHub (Feb 8, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/14161

What is the issue?

Im attempting to open claude code via cmd in my documents folder. Using the
ollama launch claude command.
But im getting the error:
Error: claude is not installed, install from https://code.claude.com/docs/en/quickstart.

I´ve added the bin folder for claude code and npm manually to my PATH.
I´ve tried renaming said folder and checked the permissions.

claude and ollama commands work and are recognized individually within cmd.

I have no idea why ollama won´t recognize claude code as being installed when started within this specific folder (a python projects folder with a few py-files).

Relevant log output


OS

Windows

GPU

Nvidia

CPU

No response

Ollama version

0.15.6

Originally created by @chille9 on GitHub (Feb 8, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/14161 ### What is the issue? Im attempting to open claude code via cmd in my documents folder. Using the **ollama launch claude** command. But im getting the error: `Error: claude is not installed, install from https://code.claude.com/docs/en/quickstart.` I´ve added the bin folder for claude code and npm manually to my PATH. I´ve tried renaming said folder and checked the permissions. claude and ollama commands work and are recognized individually within cmd. I have no idea why ollama won´t recognize claude code as being installed when started within this specific folder (a python projects folder with a few py-files). ### Relevant log output ```shell ``` ### OS Windows ### GPU Nvidia ### CPU _No response_ ### Ollama version 0.15.6
GiteaMirror added the bug label 2026-04-29 09:41:12 -05:00
Author
Owner

@rick-github commented on GitHub (Feb 8, 2026):

What's the value of %PATH%, and where is claude installed?

<!-- gh-comment-id:3868541878 --> @rick-github commented on GitHub (Feb 8, 2026): What's the value of %PATH%, and where is claude installed?
Author
Owner

@chille9 commented on GitHub (Feb 9, 2026):

What's the value of %PATH%, and where is claude installed?

Claude code is installed in the default folders. " C:\Users\Bob.local\bin\claude.exe"
used the powershell command to install it!

PATH values:
"C:\Users\Bob.local\bin\claude.exe"
"C:\Users\Bob.local\bin"
"C:\Users\Bob\AppData\Roaming\npm"

when i install CC with "curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd" in the python_project folder i cant run CC from the cmd terminal. But from powershell it detects the CC installation with commands like claude doctor.

Edit: I think a .bat file named CLAUDE.bat in the directory is the culprit for things not working correctly.

<!-- gh-comment-id:3868821725 --> @chille9 commented on GitHub (Feb 9, 2026): > What's the value of %PATH%, and where is claude installed? Claude code is installed in the default folders. " C:\Users\Bob\.local\bin\claude.exe" used the powershell command to install it! PATH values: "C:\Users\Bob\.local\bin\claude.exe" "C:\Users\Bob\.local\bin" "C:\Users\Bob\AppData\Roaming\npm" when i install CC with _"curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd"_ in the python_project folder i cant run CC from the cmd terminal. But from powershell it detects the CC installation with commands like _claude doctor._ Edit: I think a .bat file named CLAUDE.bat in the directory is the culprit for things not working correctly.
Author
Owner

@rick-github commented on GitHub (Feb 10, 2026):

Edit: I think a .bat file named CLAUDE.bat in the directory is the culprit for things not working correctly.

Does removing or renaming the BAT file resolve the issue?

<!-- gh-comment-id:3881134398 --> @rick-github commented on GitHub (Feb 10, 2026): > Edit: I think a .bat file named CLAUDE.bat in the directory is the culprit for things not working correctly. Does removing or renaming the BAT file resolve the issue?
Author
Owner

@chille9 commented on GitHub (Feb 12, 2026):

Edit: I think a .bat file named CLAUDE.bat in the directory is the culprit for things not working correctly.

Does removing or renaming the BAT file resolve the issue?

It would seem to resolve it yes. What a random issue!

<!-- gh-comment-id:3892887456 --> @chille9 commented on GitHub (Feb 12, 2026): > > Edit: I think a .bat file named CLAUDE.bat in the directory is the culprit for things not working correctly. > > Does removing or renaming the BAT file resolve the issue? It would seem to resolve it yes. What a random issue!
Author
Owner

@Tochtli-8 commented on GitHub (Apr 5, 2026):

What is the issue?

Im attempting to open claude code via cmd in my documents folder. Using the ollama launch claude command. But im getting the error: Error: claude is not installed, install from https://code.claude.com/docs/en/quickstart.

I´ve added the bin folder for claude code and npm manually to my PATH. I´ve tried renaming said folder and checked the permissions.

claude and ollama commands work and are recognized individually within cmd.

I have no idea why ollama won´t recognize claude code as being installed when started within this specific folder (a python projects folder with a few py-files).

Relevant log output

OS

Windows

GPU

Nvidia

CPU

No response

Ollama version

0.15.6

Hi, I'm having the same issue, I am not well versed in technical stuff and I cannot see where it may say .bat where do i find that information?

<!-- gh-comment-id:4188423881 --> @Tochtli-8 commented on GitHub (Apr 5, 2026): > ### What is the issue? > Im attempting to open claude code via cmd in my documents folder. Using the **ollama launch claude** command. But im getting the error: `Error: claude is not installed, install from https://code.claude.com/docs/en/quickstart.` > > I´ve added the bin folder for claude code and npm manually to my PATH. I´ve tried renaming said folder and checked the permissions. > > claude and ollama commands work and are recognized individually within cmd. > > I have no idea why ollama won´t recognize claude code as being installed when started within this specific folder (a python projects folder with a few py-files). > > ### Relevant log output > ### OS > Windows > > ### GPU > Nvidia > > ### CPU > _No response_ > > ### Ollama version > 0.15.6 Hi, I'm having the same issue, I am not well versed in technical stuff and I cannot see where it may say .bat where do i find that information?
Author
Owner

@Tochtli-8 commented on GitHub (Apr 5, 2026):

Edit: I think a .bat file named CLAUDE.bat in the directory is the culprit for things not working correctly.

Does removing or renaming the BAT file resolve the issue?

It would seem to resolve it yes. What a random issue!

Did you rename it or delete it?

<!-- gh-comment-id:4188461142 --> @Tochtli-8 commented on GitHub (Apr 5, 2026): > > > Edit: I think a .bat file named CLAUDE.bat in the directory is the culprit for things not working correctly. > > > > > > Does removing or renaming the BAT file resolve the issue? > > It would seem to resolve it yes. What a random issue! Did you rename it or delete it?
Author
Owner

@chille9 commented on GitHub (Apr 6, 2026):

Edit: I think a .bat file named CLAUDE.bat in the directory is the culprit for things not working correctly.

Does removing or renaming the BAT file resolve the issue?

It would seem to resolve it yes. What a random issue!

Did you rename it or delete it?

I just renamed it and things worked after that.

<!-- gh-comment-id:4189859657 --> @chille9 commented on GitHub (Apr 6, 2026): > > > > Edit: I think a .bat file named CLAUDE.bat in the directory is the culprit for things not working correctly. > > > > > > > > > Does removing or renaming the BAT file resolve the issue? > > > > > > It would seem to resolve it yes. What a random issue! > > Did you rename it or delete it? I just renamed it and things worked after that.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#55747