Official marketplace auto-install fails silently with 'unknown' reason on Windows

Resolved 💬 3 comments Opened Feb 5, 2026 by kimseokho1226 Closed Feb 9, 2026

Bug Description

On every startup, Claude Code displays:

Failed to install Anthropic marketplace · Will retry on next startup

This message persists across restarts and never resolves on its own.

Root Cause Analysis

After investigating the minified cli.js, the issue is in the tengu_official_marketplace_auto_install logic:

  1. Claude Code tries to auto-install the official marketplace with key "claude-plugins-official" from {source: "github", repo: "anthropics/claude-plugins-official"}
  2. The installation attempt (mv(SxA)) fails and falls into the generic catch block
  3. The failure is recorded with reason: "unknown" and triggers the warning notification
  4. On next startup, it retries and fails again (up to MAX_ATTEMPTS: 10 with exponential backoff)

The catch block only logs the error internally but the notification shown to the user gives no actionable information — just "Will retry on next startup."

Environment

  • Claude Code version: 2.1.32
  • OS: Windows 11 (native, not WSL)
  • Node.js: v22+ via nvm4w
  • Git: Available and working

Workaround

Manually registering "claude-plugins-official" in ~/.claude/plugins/known_marketplaces.json causes the auto-install check to return "already_installed" and skip the failing installation:

{
  "claude-plugins-official": {
    "source": {
      "source": "github",
      "repo": "anthropics/claude-plugins-official"
    },
    "installLocation": "C:\Users\<user>\.claude\plugins\marketplaces\anthropics-skills",
    "lastUpdated": "2026-01-31T00:54:00.000Z",
    "autoUpdate": false
  }
}

Suggestions

  1. The error notification should include the actual failure reason (from the catch block) instead of just "Will retry"
  2. The env var CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL should be documented for users who want to opt out
  3. After MAX_ATTEMPTS (10) failures, the auto-install should stop retrying permanently instead of resetting
  4. Consider checking if git clone of anthropics/claude-plugins-official actually works before attempting the install

Steps to Reproduce

  1. Fresh install Claude Code 2.1.32 on Windows
  2. Start Claude Code
  3. Observe "Failed to install Anthropic marketplace · Will retry on next startup" warning
  4. Restart — same warning appears each time

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗