from line 2
22
33> Fix plugin errors in Claude Code. Find the exact message you saw, grouped by stage from where /plugin runs through install and org policy.
44
5This page lists error messages and symptoms for Claude Code plugins and for marketplaces, the catalogs Claude Code installs plugins from. Each entry gives the cause, one fix, and what you see once the fix works.
5This page lists error messages and symptoms for Claude Code plugins and for marketplaces, the catalogs Claude Code installs plugins from. Each entry gives the cause and one fix.
66
77Where a message names a plugin or marketplace, the entry shows a placeholder such as `<name>` instead.
88
from line 86
8686| `claude plugin install <plugin> --project` | `error: unknown option '--project'` | `claude plugin install <plugin>@<marketplace> --scope project` |
8787| `/install <plugin>` | `Unknown command: /install` | `/plugin install <plugin>@<marketplace>` |
8888| `/plugin add <source>` | The `/plugin` panel opens on the **Discover** tab | `/plugin marketplace add <source>` |
89| `marketplace.anthropic.com` as a source | `Invalid marketplace source format. Try: owner/repo, https://..., or ./path` | `anthropics/claude-plugins-official` for the official marketplace |
89| `marketplace.anthropic.com` as a source | `Invalid marketplace source format` or `That isn't a marketplace source` | `anthropics/claude-plugins-official` for the official marketplace |
9090
9191These spellings look wrong but work:
9292
from line 116
116116/plugin marketplace add anthropics/claude-plugins-official
117117```
118118
119Claude Code prints `Successfully added marketplace: claude-plugins-official`, and `/plugin marketplace list` shows the marketplace with its source.
119When the add works, `/plugin marketplace list` shows the marketplace.
120120
121121For any other marketplace name in this message, see [`Marketplace "<name>" not found`](#marketplace-not-found).
122122
from line 139
139139
140140### `Invalid marketplace source format`
141141
142You ran `/plugin marketplace add <source>`, `claude plugin marketplace add <source>`, or `claude plugin install <plugin> --marketplace <source>`, and Claude Code replied `Invalid marketplace source format. Try: owner/repo, https://..., or ./path`.
142You ran `/plugin marketplace add <source>`, `claude plugin marketplace add <source>`, or `claude plugin install <plugin> --marketplace <source>`. Claude Code replied `Invalid marketplace source format` or `That isn't a marketplace source`.
143143
144144Claude Code accepts a source in one of these forms:
145145
from line 156
156156/plugin marketplace add anthropics/claude-plugins-official
157157```
158158
159Claude Code prints `Successfully added marketplace: <name>` when the add works.
159When the add works, `/plugin marketplace list` shows the marketplace.
160160
161161### `'<source>' is not a valid GitHub owner/repo shorthand`
162162
from line 174
174174/plugin marketplace add https://github.com/anthropics/claude-plugins-official.git
175175```
176176
177A successful add prints `Successfully added marketplace: <name>`.
177When the add works, `/plugin marketplace list` shows the marketplace.
178178
179179### `Invalid git URL`
180180
from line 190
190190
191191You passed a local path to `marketplace add`, and nothing exists at that path. A relative path resolves against your current directory.
192192
193Check the resolved path in the message. Then run the command from the directory the relative path starts from, or pass an absolute path to the marketplace directory. A successful add prints `Successfully added marketplace: <name>`.
193Check the resolved path in the message. Then run the command from the directory the relative path starts from, or pass an absolute path to the marketplace directory.
194194
195195Claude Code accepts a directory that contains `.claude-plugin/marketplace.json`, or a path to a `.json` file. A path to any other file fails with `File path must point to a .json file (marketplace.json)`.
196196
from line 252
252252* **SSH**: `ssh -T git@<host>` must succeed without prompting for a passphrase, and the host must already be in `known_hosts`
253253* **HTTPS**: your credential helper must hold a token for the host. For GitHub, run `gh auth login` and `gh auth setup-git`. For another host, store a personal access token in your git credential helper. To test, unset `GIT_ASKPASS` in your terminal and run `git -c core.askPass= ls-remote <url>`.
254254
255Once the check for your protocol succeeds without a prompt, run the add or update again. A successful add prints `Successfully added marketplace: <name>`. A successful update prints `Successfully updated marketplace: <name>` from your shell, or `✔ Updated 1 marketplace` in a session.
255Once the check for your protocol succeeds without a prompt, run the add or update again.
256256
257257To make Claude Code skip SSH for GitHub `owner/repo` sources, set `CLAUDE_CODE_PLUGIN_PREFER_HTTPS=1`. Without it, Claude Code clones those sources over SSH when an SSH key for `github.com` looks configured, and falls back to HTTPS when the SSH clone fails.
258258
from line 391
391391
392392### `Plugin '<name>@<marketplace>' is already installed globally`
393393
394You ran `/plugin install` for a plugin that's already installed at user scope or by managed settings, and Claude Code refused with `Use '/plugin' to manage existing plugins.` If you typed the plugin name without `@<marketplace>`, the message omits `globally`.
394You ran `/plugin install` for a plugin that's already installed at user scope or by managed settings, and Claude Code refused with this message. If you typed the plugin name without `@<marketplace>`, the message omits `globally`.
395395
396396The plugin is already available in every project, so there's nothing to add. To change its [scope](https://code.claude.com/docs/en/plugins/install.md), enable or disable it, or configure it, open `/plugin` and go to **Installed**.
397397
from line 520
520520/plugin marketplace add anthropics/claude-plugins-official
521521```
522522
523Claude Code prints `Successfully added marketplace: claude-plugins-official`, and **Discover** lists its plugins. The [Anthropic marketplaces](https://code.claude.com/docs/en/plugins/anthropic-marketplaces.md) page lists the other marketplaces you can add.
523When the add works, **Discover** lists the marketplace's plugins.
524524
525525### `Marketplace "<name>" is already added from a different source`
526526
from line 555
555555
556556Before v2.1.287, the message read `Cannot add marketplace "<name>": its network source differs from the one declared for it in settings (kind, target, or a fetch-shaping field such as headers / ref / path / sparsePaths)`.
557557
558### `Failed to install: <plugin> (<reason>)`
558### `Couldn't install: <plugin> (<reason>)` or `Failed to install: <plugin> (<reason>)`
559559
560560You selected plugins to install in the `/plugin` menu, none of them installed, and the menu closed with this summary of what failed.
561561
from line 594
594594A plugin that declares dependencies can fail to install, or install and stay disabled, when a dependency can't be satisfied. The message reaches you at install time or at load time:
595595
596596* **During install**: the refusal comes back as the install's error message
597* **When the plugin loads**: the problem appears in `claude plugin list` and the `/plugin` **Errors** tab, and Claude Code keeps the affected plugin disabled until you resolve it
597* **When the plugin loads**: the `/plugin` **Errors** tab shows the problem, and Claude Code keeps the affected plugin disabled until you resolve it
598598
599The table lists each message and its fix. To declare dependencies as an author, see [Plugin dependencies](https://code.claude.com/docs/en/plugins/dependencies.md).
599The table lists common messages and their fixes. It quotes load-time messages as `claude plugin list` prints them. To declare dependencies as an author, see [Plugin dependencies](https://code.claude.com/docs/en/plugins/dependencies.md).
600600
601601| Message | Meaning | How to resolve |
602602| :- | :- | :- |
from line 671
671671
672672### `Plugin "<name>" not cached at <path>`
673673
674The **Errors** tab shows this line with the guidance `Run /plugin to refresh the plugin cache`. It means Claude Code found no usable copy of the plugin. For example, you cleared the cache, so the directory its install record points at is missing. Or you opened a repository whose settings enable the plugin, and you haven't installed it.
674The **Errors** tab shows this line with the guidance `Run /plugin to refresh the plugin cache`. It means Claude Code found no usable copy of the plugin. For example, you cleared the cache, so the directory its install record points at is missing. Before v2.1.323, the line could also appear for a plugin that only a repository's settings enable and you haven't installed.
675675
676676Install the plugin from your shell. If you opened a repository whose `.claude/settings.json` enables the plugin, run this from the project with the plugin's key from `enabledPlugins`, as [Enabled in project settings but not installed](https://code.claude.com/docs/en/plugins/loading.md#enabled-in-project-settings-but-not-installed) describes:
677677
from line 748
748748
749749If `claude plugin list` instead marks the plugin `required by your org`, no settings file is involved: your organization marks that synced plugin as required on claude.ai, and it loads even if you disabled it earlier. See [Plugins synced from claude.ai](https://code.claude.com/docs/en/plugins/loading.md#synced-plugins).
750750
751### `Plugin "<name>" is enabled in project settings but isn't installed here`
751### `Plugin "<name>" is on in project settings but isn't installed here`
752752
753753The **Errors** tab shows this line for a plugin your project's `.claude/settings.json` enables, with the guidance `Run claude plugin install <name>@<marketplace> --scope project to install it for this project`.
754754
from line 824
824824
825825If the block still shows `unknown` after the rerun, see [Get more help](https://code.claude.com/docs/en/troubleshooting.md#get-more-help).
826826
827### `Failed to load hooks from <path>` and hooks that don't fire
827### `Couldn't load hooks from <path>` and hooks that don't fire
828828
829829A plugin's hooks don't run, or one blocks an action. Either the **Errors** tab shows a load failure for them, the hooks load and you see `<Event> hook error` notices or a blocking error in the transcript, or a hook loads without error and never fires.
830830
from line 832
832832
833833The **Errors** tab shows one of these messages:
834834
835* **`Failed to load hooks from <path>: <reason>`**: `hooks/hooks.json` isn't valid JSON or fails the hooks schema. The reason names the parse or validation error. Fix the file. To catch a JSON syntax problem in `hooks/hooks.json` before you publish the plugin, run `claude plugin validate <plugin-directory>` in your shell
835* **`Couldn't load hooks from <path>: <reason>`** or **`Failed to load hooks from <path>: <reason>`**: fix the problem that `<reason>` names, such as invalid JSON or a missing top-level `hooks` key. To catch a JSON syntax problem in `hooks/hooks.json` before you publish the plugin, run `claude plugin validate <plugin-directory>` in your shell
836836* **`hooks path not found: <path>`**: the manifest's `hooks` field names a file that doesn't exist at that path relative to the plugin root. Fix the path or add the file
837837* **`hooks path escapes plugin directory: <path>`**: see [Path escapes plugin directory](https://code.claude.com/docs/en/errors.md#path-escapes-plugin-directory)
838838
from line 897
897897
898898The plugin includes the server as an [MCPB bundle](https://code.claude.com/docs/en/plugins/components.md#include-a-packaged-mcpb-server) that declares `user_config`, and a required setting has no saved value yet or a saved value fails the bundle's own validation, so Claude Code skips starting the server. The rest of the plugin works.
899899
900Select the plugin on `/plugin`'s **Installed** tab and choose **Configure** to supply the values. After you save, `/plugin` shows `Configuration saved.` and closes, and Claude Code reloads plugins as described under [Manage installed plugins](https://code.claude.com/docs/en/plugins/install.md#manage-installed-plugins). The server starts once that reload applies. Before v2.1.285, Claude Code skipped the server without showing this line.
900For a plugin from a marketplace, select it on `/plugin`'s **Installed** tab and choose **Configure** to supply the values. After you save, `/plugin` closes and Claude Code reloads plugins as described under [Manage installed plugins](https://code.claude.com/docs/en/plugins/install.md#manage-installed-plugins). The server starts once that reload applies. Before v2.1.285, Claude Code skipped the server without showing this line.
901901
902902#### Server is configured but never connects
903903
No line in this hunk matches that.