mirror of
https://github.com/cexll/myclaude.git
synced 2026-02-05 02:30:26 +08:00
docs: update troubleshooting with idempotent PATH commands (#95)
- Use correct PATH pattern matching syntax - Explain installer auto-adds PATH - Provide idempotent command for manual use Generated with SWE-Agent.ai Co-Authored-By: SWE-Agent.ai <noreply@swe-agent.ai>
This commit is contained in:
11
README.md
11
README.md
@@ -371,11 +371,14 @@ setx PATH "%USERPROFILE%\bin;%PATH%"
|
|||||||
|
|
||||||
**Codex wrapper not found:**
|
**Codex wrapper not found:**
|
||||||
```bash
|
```bash
|
||||||
# Check PATH
|
# Installer auto-adds PATH, check if configured
|
||||||
echo $PATH | grep -q "$HOME/.claude/bin" || echo 'export PATH="$HOME/.claude/bin:$PATH"' >> ~/.zshrc
|
if [[ ":$PATH:" != *":$HOME/.claude/bin:"* ]]; then
|
||||||
|
echo "PATH not configured. Reinstalling..."
|
||||||
|
bash install.sh
|
||||||
|
fi
|
||||||
|
|
||||||
# Reinstall
|
# Or manually add (idempotent command)
|
||||||
bash install.sh
|
[[ ":$PATH:" != *":$HOME/.claude/bin:"* ]] && echo 'export PATH="$HOME/.claude/bin:$PATH"' >> ~/.zshrc
|
||||||
```
|
```
|
||||||
|
|
||||||
**Permission denied:**
|
**Permission denied:**
|
||||||
|
|||||||
11
README_CN.md
11
README_CN.md
@@ -307,11 +307,14 @@ setx PATH "%USERPROFILE%\bin;%PATH%"
|
|||||||
|
|
||||||
**Codex wrapper 未找到:**
|
**Codex wrapper 未找到:**
|
||||||
```bash
|
```bash
|
||||||
# 检查 PATH
|
# 安装程序会自动添加 PATH,检查是否已添加
|
||||||
echo $PATH | grep -q "$HOME/.claude/bin" || echo 'export PATH="$HOME/.claude/bin:$PATH"' >> ~/.zshrc
|
if [[ ":$PATH:" != *":$HOME/.claude/bin:"* ]]; then
|
||||||
|
echo "PATH not configured. Reinstalling..."
|
||||||
|
bash install.sh
|
||||||
|
fi
|
||||||
|
|
||||||
# 重新安装
|
# 或手动添加(幂等性命令)
|
||||||
bash install.sh
|
[[ ":$PATH:" != *":$HOME/.claude/bin:"* ]] && echo 'export PATH="$HOME/.claude/bin:$PATH"' >> ~/.zshrc
|
||||||
```
|
```
|
||||||
|
|
||||||
**权限被拒绝:**
|
**权限被拒绝:**
|
||||||
|
|||||||
Reference in New Issue
Block a user