[BUG] VS Code extension installation fails with 'End of central directory record signature not found' on /status

Status Fixed / completed
Maintainer reply ✓ Yes — ant-kurt
Activity 15 comments · opened Jul 16, 2025 · closed Jul 17, 2025
💡 Likely answer: A maintainer (ant-kurt, collaborator) responded on this thread — see the highlighted reply below.

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.53
  • Operating System: Windows 11
  • Terminal: Windows Terminal (PowerShell 7)

Bug Description

Claude Code fails to install its VS Code extension with an "End of central directory record signature not found" error when running /status. The extension installation process appears to be trying to extract a corrupted or truncated .vsix file.

Steps to Reproduce

  1. Install Claude Code globally via npm: npm install -g @anthropic-ai/claude-code
  2. Open a terminal in any project directory
  3. Run claude to start Claude Code
  4. Type /status to check IDE integration status
  5. Observe the VS Code extension installation failure

Expected Behavior

The VS Code extension should install successfully and show "✔ VS Code extension installed" in the status output.

Actual Behavior

The extension installation fails with the following error:

⚠ Error installing VS Code extension: 1: 1 Error: End of central directory record signature not found. Either not a zip file, or file is truncated.

The error indicates the .vsix file located at file:///c%3A/Users/.../AppData/Local/nvm/v22.17.0/node_modules/%40anthropic-ai/claude-code/vendor/claude-code.vsix appears to be corrupted or incomplete.

Additional Context

  • The error occurs consistently on every /status check
  • Restarting VS Code as suggested does not resolve the issue
  • The .vsix file may have been corrupted during npm installation
  • Using nvm for Node.js version management (v22.17.0)
  • VS Code version: 1.102.0
  • The issue prevents full IDE integration functionality
  • Manually install the vs code extension doesn't help, I can use the extension but claude-code.vsix is 0 byte

View original on GitHub ↗

15 Comments

Simon33rd · 1 year ago

I found the same issue. my claude-code.vsix file is empty.

NicklasSoderberg · 1 year ago

Same issue. Was fine until a day ago.

TakumaAida · 1 year ago

same issue. Mac OS too. claude-code.vsix is empty

babySaga2025 · 1 year ago

Also experiencing this issue on Windows with Cursor IDE. Getting the same 'End of central directory record signature not found' error. This appears to be causing downstream file path resolution issues - I'm getting errors like:
Error: cannot open _claude_fs_right:c%3A%5CUsers%5Cgrant%5CDocuments%5CNinjaTrader%208%5Cbin%5CCustom%5CStrategies%5CExportRenkoBars.cs
This suggests the corrupted extension installation is breaking Claude Code's file system integration entirely. I have separate installations for WSL and Windows - WSL works fine, but Windows fails with both the extension installation error and these file path resolution issues.

Windows: Node.js v24.4.0 (standard installation)
WSL: Node.js v20.19.3
Issue occurs on Windows but not WSL

BenJackGill · 1 year ago

I have the same issue.

Here is the relevant /status info:

 System Diagnostics • /doctor
 ⚠  Config mismatch: running npm-global but config says unknown

 IDE Integration • /config
 ⚠  Error installing Cursor extension: 1: 1 Error: End of central directory record signature not found. Either not a zip file, or file is truncated.
        at Ef (file:///Applications/Cursor.app/Contents/Resources/app/out/vs/code/node/cliProcessMain.js:52:28755)
        at file:///Applications/Cursor.app/Contents/Resources/app/out/vs/code/node/cliProcessMain.js:52:30083
        at /Applications/Cursor.app/Contents/Resources/app/node_modules/yauzl/index.js:40:7
        at /Applications/Cursor.app/Contents/Resources/app/node_modules/yauzl/index.js:190:5
        at Immediate.<anonymous> (/Applications/Cursor.app/Contents/Resources/app/node_modules/yauzl/index.js:705:38)
        at process.processImmediate (node:internal/timers:483:21) {
      code: 'Extract',
      name: 'Extract'
    }
    Failed Installing Extensions: file:///Users/BenJackGill/.nvm/versions/node/v22.17.0/lib/node_modules/%40anthropic-ai/claude-code/vendor/claude-code.vsix
    (node:6462) [DEP0168] DeprecationWarning: Uncaught N-API callback exception detected, please run node with option --force-node-api-uncaught-exceptions-policy=true to handle those exceptions properly.
    (Use `Cursor --trace-deprecation ...` to show where the warning was created)

    Please restart your IDE and try again.

Note, restarting the IDE as advised in the error message does nothing.

PlymouthRock · 1 year ago

Here's how I resolved it.

  1. Downloaded the vsix file from VS Code extension manager (click gear icon next to auto update).
  2. Renamed the file to claude-code.vsix
  3. Copied it into the node_modules/.../claude-code/vendor directory overwriting the 0 byte file.
  4. Restarted VS Code.
ant-kurt collaborator · 1 year ago

Duplicate of #3574?

wpfleger96 · 1 year ago

I have the same issue on Mac, ~/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/vendor/claude-code.vsix is empty and CC /status shows extension failure:

 IDE Integration • /config
 ✔  Connected to Cursor extension
 ⚠  Error installing Cursor extension: 1: 1 Error: End of central directory record signature not found. Either not a zip file, or file is truncated.
        at Ef (file:///Applications/Cursor.app/Contents/Resources/app/out/vs/code/node/cliProcessMain.js:52:28755)
        at file:///Applications/Cursor.app/Contents/Resources/app/out/vs/code/node/cliProcessMain.js:52:30083
        at /Applications/Cursor.app/Contents/Resources/app/node_modules/yauzl/index.js:40:7
        at /Applications/Cursor.app/Contents/Resources/app/node_modules/yauzl/index.js:190:5
        at Immediate.<anonymous> (/Applications/Cursor.app/Contents/Resources/app/node_modules/yauzl/index.js:705:38)
        at process.processImmediate (node:internal/timers:483:21) {
      code: 'Extract',
      name: 'Extract'
    }
    Failed Installing Extensions: file:///Users/wpfleger/.nvm/versions/node/v22.15.0/lib/node_modules/%40anthropic-ai/claude-code/vendor/claude-code.vsix
    (node:18950) [DEP0168] DeprecationWarning: Uncaught N-API callback exception detected, please run node with option --force-node-api-uncaught-exceptions-policy=true to handle those exceptions properly.
    (Use `Cursor --trace-deprecation ...` to show where the warning was created)

I already tried restarting Cursor and reinstalling Claude Code but I am still seeing the issue. FWIW I am using AWS Bedrock not Anthropic API like OP

brennenawana · 1 year ago

@PlymouthRock nailed it.
Note: If you are using Cursor, the option to install VSIX won't be there. You'll need to open up VS Code

Simon33rd · 1 year ago

This fix work for me when running using wsl and starting code form command line. But not from Windows VS Code. If I start claude code from a command prompt and /ide there is the option to select the VS Code IDE which suggests it has connected by Nodejs crashes when it tries to show a file diff.

From: Tim Ricciardi @.*>
Sent: Thursday, July 17, 2025 12:55 AM
To: anthropics/claude-code
@.*>
Cc: Simon Third @.>; Comment @.>
Subject: Re: [anthropics/claude-code] [BUG] VS Code extension installation fails with 'End of central directory record signature not found' on /status (Issue #3598)

[https://avatars.githubusercontent.com/u/2496106?s=20&v=4]PlymouthRock left a comment (anthropics/claude-code#3598)<https://github.com/anthropics/claude-code/issues/3598#issuecomment-3078456524>

Here's how I resolved it.

  1. Downloaded the vsix file from VS Code extension manager (click gear icon next to auto update).
  2. Renamed the file to claude-code.vsix
  3. Copied it into the node_modules/.../claude-code/vendor directory overwriting the 0 byte file.
  4. Restarted VS Code.


Reply to this email directly, view it on GitHub<https://github.com/anthropics/claude-code/issues/3598#issuecomment-3078456524>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ARWV6Y5ECLTJHDFZNAB7UZ33IZDQZAVCNFSM6AAAAACBT7C2ZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTANZYGQ2TMNJSGQ>.
You are receiving this because you commented.Message ID: @.****@.**>>

tanaymehhta · 1 year ago

Here's how I resolved it.

Downloaded the vsix file from VS Code extension manager (click gear icon next to auto update).
Renamed the file to claude-code.vsix
Copied it into the node_modules/.../claude-code/vendor directory overwriting the 0 byte file.
Restarted VS Code.

can someone explain in detail which specific vsix file

vysakh0 · 1 year ago

Facing the same issue, surprised how it is not fixed yet.

PlymouthRock · 1 year ago

Looks like 1.0.54 resolves the issue. I've installed and tested it. It's listed as next in npm so it's not getting updated on claude update. Had to explicitly install it:

npm install -g @anthropic-ai/claude-code@1.0.54

blois collaborator · 1 year ago

This should be fixed in the upcoming release.

github-actions[bot] · 1 year ago

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.