TDTech Digest

091. 플러그인 문제 해결 (Troubleshoot plugins)

  • 원문: English
  • 위치: Plugins › Troubleshooting › Troubleshoot plugins

한 줄 요약

플러그인·마켓플레이스 오류 메시지를 발생 단계별(/plugin 실행 위치 → 마켓플레이스 추가 → 설치 → 설치 후 동작 → 개발 → 마켓플레이스 호스팅 → 조직 정책)로 모아 원인과 해결책을 하나씩 알려 주는 레퍼런스입니다.

쉽게 말하면

  • 본 메시지를 그대로 검색하세요. 메시지는 실행한 명령이 아니라 그 메시지를 만든 단계 아래에 있습니다(예: 설치 실패지만 원인이 마켓플레이스 누락이면 “마켓플레이스 추가"에 있음).
  • 가장 먼저 볼 곳은 /plugin의 Installed와 Errors 탭, 그리고 claude plugin list입니다.
  • 📝 원문은 100KB가 넘는 오류 목록입니다. 여기서는 자주 만나는 항목 위주로 정리했으며, 전체 목록은 원문을 참고하세요. 스코프·캐시·우선순위 동작 원리는 092. 플러그인 로딩 레퍼런스, 모드의 hooks module not loaded는 062. 모드 문제 해결을 봅니다.

핵심 내용

1. /plugin을 어디서 실행하는가

메시지원인 / 해결
/plugin isn't available in this environmentclaude -p, Agent SDK, VS Code 패널 등 터미널 세션이 아닌 곳. VS Code는 /plugin만 단독 입력하면 Manage plugins 대화상자가 열림. 또는 셸에서 claude plugin install <plugin>@<marketplace>
zsh: no such file or directory: /plugin, PowerShell The term '/plugin' is not recognized...셸 프롬프트에 입력함. claude 실행 후 세션 안에서 입력
claude: command not foundPATH 문제. 071. 설치 문제 해결

존재하지 않는 명령 철자

입력올바른 명령
claude plugin add <source>claude plugin marketplace add <source> 또는 claude plugin install <plugin>@<marketplace>
claude plugin install <plugin> --project... --scope project
/install <plugin>/plugin install <plugin>@<marketplace>
/plugin add <source>/plugin marketplace add <source>
marketplace.anthropic.comanthropics/claude-plugins-official

💡 동작하는 별칭: claude plugins = claude plugin, claude plugin remove = uninstall, /plugins·/marketplace = /plugin.

2. 마켓플레이스 추가

메시지원인 / 해결
Marketplace "claude-plugins-official" not found공식 마켓플레이스 미등록(첫 대화형 터미널 세션에서 자동 등록되지만 VS Code만 썼거나, 정책 차단, CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL, 재시도 대기 중이면 안 됨). ⚠️ claude plugin 셸 명령은 자동 등록 안 함. /plugin marketplace add anthropics/claude-plugins-official
Marketplace "<name>" not found추가하지 않은 마켓플레이스. 이름 조회 인덱스가 없으니 보낸 사람에게 소스를 물어볼 것. claudeai-로 시작하면 claude plugin marketplace add --claudeai <name>. /plugin install <source> 형식도 이 메시지를 냄
Invalid marketplace source format허용 형식: GitHub owner/repo, https:///http:// URL, user@host:path, ./·../·/·~로 시작하는 로컬 경로
'<source>' is not a valid GitHub owner/repo shorthandgithub.com/owner/repo나 GitLab 경로를 축약형으로 씀. 전체 클론 URL 사용
Invalid git URL미지원 프로토콜이거나 다른 서버/폴더로 해석될 수 있는 주소. 메시지 안내대로 수정
Path does not exist, File path must point to a .json file경로 오류. .claude-plugin/marketplace.json이 있는 디렉터리나 .json 파일만 허용
Marketplace file not found at <path>/.claude-plugin/marketplace.json기본 위치에 카탈로그 없음
Cannot add marketplace "<name>": ... cannot install plugins from a marketplace with this name이름 규칙 위반: a-z A-Z 0-9 . _ -만, 첫 글자는 영문/숫자
... reserves this nameconstructor, toString, valueOf 같은 JS 객체 멤버 이름
SSH authentication failed / HTTPS authentication failed먼저 저장소 존재·권한 확인(git ls-remote <url>). 그다음 자격 증명: 프롬프트·askpass(GIT_ASKPASS) 꺼짐, SSH는 batch 모드. fatal: Cannot prompt because user interactivity has been disabled 등이 단서. 테스트: git -c core.askPass= ls-remote <url>
SSH host key is not in your known_hosts fileStrictHostKeyChecking=yes. 터미널에서 ssh -T git@github.com으로 지문 수락. 키 변경 시 ssh-keygen -R <host>
Command 'git' not found or is in an unsafe locationWindows에서 현재 디렉터리의 git만 있음. Git for Windows 설치 후 새 터미널
Git clone timed out after 120sCLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS=300000(밀리초). 모노레포는 --sparse <paths>, 큰 서브모듈은 v2.1.295+로 업데이트
오프라인에서 업데이트 반복 실패CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE=1(이미 marketplace.json이 있는 체크아웃만). 완전 오프라인은 CLAUDE_CODE_PLUGIN_SEED_DIR
GHES에서 실패정책 오류는 관리자가 hostPattern 추가, claude.ai 접근 오류는 GHE 계정 연결. 072. GHES
  • 💡 GitHub owner/repo의 SSH를 건너뛰려면 CLAUDE_CODE_PLUGIN_PREFER_HTTPS=1. GitHub HTTPS는 gh auth login + gh auth setup-git.

📝 원문 확인 필요: 이 페이지는 owner/repo 소스가 “SSH 클론 실패 시 HTTPS로 대체"된다고 일반적으로 설명하지만, 072. 마켓플레이스 호스팅은 “세션 내 /plugin 설치와 플러그인 업데이트는 대체하지 않는다"고 설명합니다(플러그인 엔트리의 github 소스 맥락). 적용 범위 차이를 원문에서 확인하세요.

3. 플러그인 설치

메시지원인 / 해결
Plugin "<name>" not found in marketplace "<marketplace>"새로고침 힌트가 있으면 /plugin marketplace update <marketplace> 후 재시도. 힌트가 없으면 이름 오타일 가능성이 높으니 Discover에서 복사
Plugin "<name>" not found in any marketplace@marketplace 없이 설치. 셸 명령은 새로고침 안 하고, /plugin install은 자동 업데이트 켜진 것만 새로고침. <name>@<marketplace>로 지정
... is already installed globally이미 user 범위나 관리형으로 설치됨. Installed에서 관리
"<plugin>" was not installed: it would share its folder with "<other>".·@를 -로 바꾸면 같은 id(macOS/Windows는 대소문자도). 하나만 설치 가능
This plugin uses a source type your Claude Code version does not supportClaude Code 업데이트
Plugin archive integrity check failedarchive의 sha256 불일치. 게시자는 shasum -a 256으로 재계산, 설치자는 마켓플레이스 업데이트 후 재시도
An npm plugin source must name a registry packagepackage 값이 잘못됨(예: github:acme/formatter). git 저장소는 github/url/git-subdir 소스 사용
Marketplace "<name>" is registered from an untrusted source공식 예약 이름인데 anthropics GitHub 저장소가 아님. claude plugin marketplace remove <name> 후 공식 소스로 재추가
Marketplace "<name>" is added but ignoredknown_marketplaces.json 항목이 검사 실패(네트워크 드라이브, ./.. 경로, 사용 불가 URL, extraKnownMarketplaces와 불일치). remove 후 재추가. 네트워크 드라이브를 신뢰하려면 user/관리형 extraKnownMarketplaces에 선언(저장소 설정은 불인정)
Plugin <name> has a corrupt manifest file / invalid manifest fileplugin.json JSON 오류 / 스키마 오류. 작성자가 claude plugin validate로 수정
Plugin directory not found at path마켓플레이스 엔트리의 상대 경로에 디렉터리 없음
No plugins yet, No marketplaces configured마켓플레이스 미등록. 공식 마켓플레이스 추가
Marketplace "<name>" is already added from a different source같은 이름, 다른 소스. 기존 것을 쓰거나 remove 후 재시도
Cannot add marketplace "<name>": its source doesn't match its extraKnownMarketplaces entry타입과 모든 필드가 같아야 일치(ref 차이, https://github.com/ URL은 git 소스로 기록됨). 선언된 형태로 추가(예: acme-corp/claude-plugins#v1.2.0)
Could not move the new copy of this plugin version into <path>다른 프로그램(스캐너 등)이 캐시 폴더 사용 중. 다른 세션 종료 후 재시도. previously installed copy was moved back이면 기존 버전 유지

의존성 오류 (claude plugin list --json의 errors, errorDetails.type으로도 확인)

메시지해결
Dependency "<dep>" is not installedclaude plugin install <dep>@<marketplace> 또는 마켓플레이스 추가 후 /reload-plugins
Dependency "<dep>" is disabled의존성 활성화
Requires "<dep>" <range>, installed <version>범위 내 버전으로 업데이트
... has conflicting version requirements충돌 플러그인 정리 또는 상위 작성자에게 범위 완화 요청
... has no git tag satisfying <range>상위가 <name>--v* 태그를 쓰는지 확인
... is in marketplace "<marketplace>", which is not in the allowlist마켓플레이스 간 해석은 기본 꺼짐. 같은 --scope로 직접 설치
Dependencies are not installed while non-essential traffic is turned off.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC 설정 때문. 수동 설치

4. 설치는 됐는데 동작하지 않음

기본 점검 순서: /plugin Installed에서 활성화 확인 → Errors 탭 확인 → 이번 세션에 설치했다면 /reload-plugins(Reloaded: 개수 출력).

증상/메시지원인 / 해결
Run /reload-plugins to apply.프롬프트 캐시 무효화 우려 또는 활성화 실패로 보류. 패널이 닫히면 자동 실행됨. This reload changes MCP tools ...가 뜨면 /reload-plugins --force 또는 새 세션
The packages it lists are not installed / were not installed, because ...node_modules 없음. 전자는 claude plugin update로 재시도, 후자는 Yarn/pnpm/bun.lockb 잠금 파일이나 패키지 매니저 부재
Plugin "<name>" not cached at <path>캐시 삭제 등. claude plugin install <name>@<marketplace>(프로젝트 설정이면 --scope project) 후 /reload-plugins
installed_plugins.json holds a record ... cannot read다른(더 새) 버전이 쓴 기록. claude update → 안 되면 그 버전으로 제거 → 최후엔 수동 삭제
installed_plugins.json could not be read and was rebuilt.kept 파일 보고 빠진 플러그인 재설치
does not load (...), so Claude Code ignores the whole file설정 파일 오류로 파일 전체 무시. 해당 키 수정 후 명령 재실행
Disabled in ~/.claude/settings.json but still loads상위 소스가 true. 프로젝트가 켠 것은 .claude/settings.local.json에 false. required by your org는 claude.ai 필수 동기화 플러그인
Plugin "<name>" is on in project settings but isn't installed here저장소 설정은 켜기만 하고 설치는 안 함. claude plugin install <name>@<marketplace> --scope project
Windows에서 uninstall 후에도 남음경로 철자가 다른 기록 2개(c:\ vs C:\). 같은 명령을 한 번 더
git 플러그인 버전 unknownv2.1.302+로 업데이트 → marketplace update → plugin update → 12자리 커밋 ID 확인

훅 문제

  • 로드 실패: Couldn't load hooks from <path>(JSON 오류, 최상위 hooks 키 누락), hooks path not found, hooks path escapes plugin directory.
  • hook failed: /bin/sh: node: command not found(Node.js 설치/PATH), 공백에서 경로가 잘림 → "${CLAUDE_PLUGIN_ROOT}" 따옴표 또는 exec form.
  • 종료 코드 2로 차단 시 메시지 끝에 This hook comes from the <plugin> plugin.(v2.1.281+).
  • 로드되는데 안 돎: 상세에 Its hooks.json hooks do not run이면 같은 이름의 다른 플러그인이 등록한 것. 아니면 이벤트 이름 대소문자(PostToolUse), matcher, 디버그 로그 확인.
  • Plugin directory does not exist: 먼저 /reload-plugins(필요 시 --force).

MCP 서버

  • Invalid MCP server config for "<server>": Missing environment variables(셸에 설정 후 새 세션), URL is unset or invalid(/plugin configure <plugin>).
  • Bundled MCP server "<name>" was not started: it needs configuration: MCPB user_config 필수값 없음 → Installed에서 Configure.
  • 연결 안 됨: /mcp 상태 확인, claude --debug 로그(~/.claude/debug/<session-id>.txt, 터미널엔 출력 안 됨). ⚠️ 15분 내 실패한 stdio 서버는 시작하지 않으니 /mcp에서 Reconnect.
  • --plugin-dir에선 되는데 설치 후 실패: 캐시로 복사되므로 ${CLAUDE_PLUGIN_ROOT} 경로 사용.

언어 서버(LSP): Executable not found in $PATH → 바이너리 설치·PATH 확인. 메모리 과다(rust-analyzer, pyright) → /plugin disable <plugin>. 모노레포 오탐은 Claude Code 쪽 문제 아님.

5. 플러그인 개발

증상/메시지원인 / 해결
commands path not found: <path> (skills/agents/hooks 동일)매니페스트 경로는 플러그인 루트 기준 ./로 시작. 루트 밖이면 path escapes plugin directory
--plugin-dir을 마켓플레이스 루트에 지정오류 없이 아무것도 로드 안 됨. ./my-marketplace/plugins/my-plugin처럼 플러그인 디렉터리 지정
디렉터리 밖 파일(../shared-utils) 못 찾음캐시 복사 때문. 플러그인 안으로 옮기거나 내부 symlink
Windows에서 ${CLAUDE_PLUGIN_ROOT}가 /Git Bash 경유 shell-form 훅. 백슬래시 필요하면 exec form이나 "shell": "powershell"
스킬이 안 보임skills/, commands/는 플러그인 루트에. .claude-plugin/ 안엔 plugin.json만. SKILL.md 파일이 아닌 디렉터리를 가리켜야 함
Claude가 스킬을 자동 호출 안 함disable-model-invocation: true 제거, 설명 개선, 스킬 많으면 설명이 잘림. claude plugin eval의 tool_used: Skill 그레이더로 측정
userConfig 대화상자 안 뜸셸 claude plugin install은 묻지 않음 → --config KEY=VALUE 또는 /plugin configure <plugin>@<marketplace>
Plugin <name> has conflicting manifestsplugin.json이 있는데 엔트리가 strict: false + 컴포넌트 필드 선언. 필드 제거 또는 strict: true

claude plugin validate 주요 오류: File not found, No manifest found in directory, Invalid JSON syntax(⚠️ hooks/hooks.json 오류 시 그 훅 없이 로드), Path not found, Path contains "..", Path is a file; skills entries must be directories containing SKILL.md, No frontmatter block found, Plugin name "<name>" is reserved, engines 범위 오류, Unknown field '<key>'(--strict에서만 실패).

6. 마켓플레이스 호스팅

  • URL 마켓플레이스 + 상대 경로 → its marketplace entry path does not stay inside the marketplace directory / Plugin source path refused. github 소스를 쓰거나 git 저장소로 호스팅.
  • 루트 플러그인의 서브모듈 파일 누락(v2.1.295+는 플러그인 파일이 있는 서브모듈만 가져옴): ${CLAUDE_PLUGIN_ROOT}/vendor/tool/run.sh처럼 경로를 전체로 명시.
  • 마켓플레이스 검증: 중복 이름, .. 경로, 제어/양방향 문자(오류) / 플러그인 없음, 설명 없음, kebab-case 아님(claude.ai 동기화 필요), 버전 불일치, Claude Desktop 예약 이름 org·org-provisioned·unknown, 128자 제한(경고).

7. 조직 정책에 의한 차단

메시지원인 설정
Marketplace source '<source>' is blocked by enterprise policyblockedMarketplaces 또는 strictKnownMarketplaces. Allowed sources:가 있으면 허용 목록, No external marketplaces are allowed.면 빈 허용 목록. 사내 호스트면 전체 URL로
Marketplace "<name>" is not in the allowed marketplace list로드 시점 재검사
Plugin "<name>" is blocked by your organization's policy ...플러그인/마켓플레이스/의존성 차단
--plugin-dir is disabled ... (disableSideloadFlags)--plugin-dir, --plugin-url, --agents, --mcp-config 차단. --plugin-dir copy of "<name>" ignored는 관리형 잠금
Plugins from ~/.claude/skills/ are blocked ...허용 목록에 {"source":"skills-dir"} 없음
Command-sourced plugins are disabled ...disableCommandPluginSources(미설정 시 allowManagedHooksOnly가 같은 효과)
Marketplace '<name>' is seed-managedCLAUDE_CODE_PLUGIN_SEED_DIR 시드는 읽기 전용. 시드 이미지 담당자에게 요청

실무 관점

  • 사내 헬프데스크 문서에는 이 페이지의 SSH/HTTPS 인증, known_hosts, 120초 타임아웃, 정책 차단 항목을 우선 옮겨 두면 문의 대부분을 커버할 수 있습니다. Claude Code는 git 프롬프트를 끄기 때문에 “터미널에선 되는데 Claude Code에선 안 됨” 유형이 가장 흔합니다.
  • 프로젝트 .claude/settings.json의 enabledPlugins는 설치를 하지 않는다는 점을 팀에 공유하세요. 온보딩 스크립트에 claude plugin install ... --scope project를 넣는 편이 안전합니다.
  • 플러그인 개발 CI에는 claude plugin validate --strict를 넣어 매니페스트·hooks.json·.mcp.json 오류를 배포 전에 잡으세요.
  • 설정 파일 하나에 잘못된 값이 있으면 그 파일 전체가 무시되므로, 관리형/공유 설정 변경 후에는 /status와 claude plugin list로 반드시 확인하세요.
  • 관리자 쪽 정책 문제 해결은 081. 조직 플러그인 관리의 “정책 문제 해결” 절을 함께 참고합니다.