claude-code - 💡(How to fix) Fix [BUG] CC Switch "关于"页面显示 claude.cmd 无法运行 — 路径引号嵌套问题 (Windows) [BUG] CC Switch "About" page shows claude.cmd cannot run — path quoting issue on Windows

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

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?

环境 / Environment

  • OS: Windows 11 Home China (10.0.26200)
  • VS Code 扩展版本: [email protected]
  • Claude CLI 版本: 2.1.157
  • Node.js: v24.15.0
  • npm: 11.12.1

问题描述 / Description

在扩展的"关于"(About)页面中显示"已安装·无法运行",错误信息为:

'"C:\Users\Gobig\AppData\Roaming\npm\claude.cmd"' 不是内部或外部命令,也不是可运行的程序或批处理文件

What Should Happen?

分析 / Analysis

  1. claude.cmd 文件确实存在于 C:\Users\Gobig\AppData\Roaming\npm\claude.cmd
  2. 在终端中执行 claude --version 能正常返回 2.1.157 (Claude Code)
  3. 问题在于扩展调用路径时多了一层引号嵌套('"..."'),导致 Windows CMD 将整个带引号的字符串当作文件名查找
  4. 错误信息中的中文出现乱码,说明编码处理(UTF-8 vs GBK)也需要修复

Error Messages/Logs

Steps to Reproduce

分析 / Analysis

  1. claude.cmd 文件确实存在于 C:\Users\Gobig\AppData\Roaming\npm\claude.cmd
  2. 在终端中执行 claude --version 能正常返回 2.1.157 (Claude Code)
  3. 问题在于扩展调用路径时多了一层引号嵌套('"..."'),导致 Windows CMD 将整个带引号的字符串当作文件名查找
  4. 错误信息中的中文出现乱码,说明编码处理(UTF-8 vs GBK)也需要修复

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.157

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

[

<img width="636" height="280" alt="Image" src="https://github.com/user-attachments/assets/cd51d8c7-2fda-4000-9126-f0f2d4692a66" />

](url)

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] CC Switch "关于"页面显示 claude.cmd 无法运行 — 路径引号嵌套问题 (Windows) [BUG] CC Switch "About" page shows claude.cmd cannot run — path quoting issue on Windows