{"record":{"id":"d0ab72c73921cd3d","repo":"thedotmack/claude-mem","slug":"git-bash-not-found-claude-mem-hooks-require-bash","errorCode":null,"errorMessage":"Git Bash not found. claude-mem hooks require bash, and Claude Code resolves it via Git for Windows on Windows. Install Git for Windows (https://git-scm.com/download/win), or if bash is installed somewhere non-standard, set CLAUDE_CODE_GIT_BASH_PATH to the full path of bash.exe.","messagePattern":"Git Bash not found\\. claude-mem hooks require bash, and Claude Code resolves it via Git for Windows on Windows\\. Install Git for Windows \\(https://git-scm\\.com/download/win\\), or if bash is installed somewhere non-standard, set CLAUDE_CODE_GIT_BASH_PATH to the full path of bash\\.exe\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"src/npx-cli/commands/install.ts","lineNumber":2028,"sourceCode":"\n  const dot = styleText('dim', '·');\n  const segments = [`${styleText('bold', 'claude-mem')} ${styleText('cyan', `v${version}`)}`];\n  if (existingVersion && existingVersion !== version) {\n    segments.push(`installed ${styleText('yellow', `v${existingVersion}`)}`);\n  } else if (existingVersion) {\n    segments.push(styleText('dim', 'reinstall'));\n  }\n  log.info(segments.join(` ${dot} `));\n\n  // All claude-mem hooks run via `\"shell\": \"bash\"`; on Windows, Claude Code\n  // resolves that through Git for Windows with no WSL fallback. Surfacing it\n  // here — rather than letting the first hook throw an unbranded error — is\n  // a warning, not a hard stop: the operator may install Git for Windows\n  // after this run and hooks will start working without a reinstall.\n  if (IS_WINDOWS) {\n    const gitBash = checkWindowsGitBash();\n    if (!gitBash.ok) {\n      log.warn(gitBash.detail);\n    }\n  }\n\n  if (alreadyInstalled) {\n    if (process.stdin.isTTY) {\n      const shouldContinue = await p.confirm({\n        message: 'Overwrite existing installation?',\n        initialValue: true,\n      });\n\n      if (p.isCancel(shouldContinue) || !shouldContinue) {\n        p.cancel('Installation cancelled.');\n        process.exit(0);\n      }\n    }\n  }\n\n  let selectedIDEs: string[];","sourceCodeStart":2010,"sourceCodeEnd":2046,"githubUrl":"https://github.com/thedotmack/claude-mem/blob/d8bc9755e74915e5c3b999181e10a67c889bce2a/src/npx-cli/commands/install.ts#L2010-L2046","documentation":"On Windows, claude-mem hooks execute through bash, which Claude Code locates via Git for Windows. During install, checkWindowsGitBash() probes for bash.exe; if not found, the installer warns with instructions rather than hard-failing, because Git for Windows can be installed later and hooks will start working without reinstalling claude-mem.","triggerScenarios":"IS_WINDOWS is true and `checkWindowsGitBash()` returns ok:false — Git for Windows is not installed, or bash.exe is at a non-standard path not covered by CLAUDE_CODE_GIT_BASH_PATH.","commonSituations":"Windows machines without Git installed; portable/custom Git installs outside standard Program Files locations; environments where only WSL git exists (not Git for Windows).","solutions":["Install Git for Windows from https://git-scm.com/download/win, then rerun or just restart Claude Code.","If bash.exe is installed somewhere non-standard, set the CLAUDE_CODE_GIT_BASH_PATH environment variable to its full path (e.g. C:\\tools\\git\\bin\\bash.exe).","Verify with `where bash` / `\"%CLAUDE_CODE_GIT_BASH_PATH%\" --version` that bash resolves before running hooks."],"exampleFix":"// before\nset CLAUDE_CODE_GIT_BASH_PATH=\n// after (system environment variable)\nsetx CLAUDE_CODE_GIT_BASH_PATH \"C:\\Program Files\\Git\\bin\\bash.exe\"","handlingStrategy":"validation","validationCode":"if (process.platform === 'win32') {\n  const bash = process.env.CLAUDE_CODE_GIT_BASH_PATH ?? 'C:\\\\Program Files\\\\Git\\\\bin\\\\bash.exe';\n  if (!fs.existsSync(bash)) {\n    console.warn(`bash.exe not found at ${bash}; install Git for Windows or set CLAUDE_CODE_GIT_BASH_PATH.`);\n  }\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Install Git for Windows (https://git-scm.com/download/win) before running claude-mem hooks on Windows.","For portable Git installs, set CLAUDE_CODE_GIT_BASH_PATH to the full bash.exe path as a system env var.","Verify with `\"%CLAUDE_CODE_GIT_BASH_PATH%\" --version` after changes."],"tags":["windows","git-bash","hooks","dependency"],"backgroundTag":"missing-dependency","analyzedSha":"d8bc9755e74915e5c3b999181e10a67c889bce2a","analyzedAt":"2026-09-17T16:40:26.182Z","contentChangedAt":"2026-09-17T16:40:26.182Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}