Loading...
Loading...
Compare original and translation side by side
When running `npm install` on Node 20+, the `--legacy-peer-deps` flag
is required due to React 18 peer dependency conflicts.Had some issues with npm install, fixed it eventually.在Node 20+环境下运行`npm install`时,由于React 18的 peer 依赖冲突,需要使用`--legacy-peer-deps`参数。npm install遇到了一些问题,最终解决了。| Scope | Characteristics | Capture Target |
|---|---|---|
| Project-specific | Involves this codebase's architecture, conventions, dependencies, or local setup | Project knowledge files ( |
| General | Applies across all projects—language patterns, framework best practices, tool usage, API quirks | Skills, commands, or subagents |
| Learning | Scope | Target |
|---|---|---|
"This repo uses | Project-specific | |
"SwiftUI | General | |
"Run | Project-specific | |
"React Server Components can't use | General | |
"The CI pipeline requires | Project-specific | |
"Playwright's | General | |
| 范围 | 特征 | 捕获目标 |
|---|---|---|
| 项目特定 | 涉及此代码库的架构、约定、依赖项或本地设置 | 项目知识文件( |
| 通用 | 适用于所有项目——语言模式、框架最佳实践、工具使用、API特性 | 技能、命令或子代理 |
| 学习内容 | 范围 | 目标 |
|---|---|---|
"此仓库使用 | 项目特定 | |
"SwiftUI的 | 通用 | |
"为此项目运行 | 项目特定 | |
"React Server Components无法使用 | 通用 | |
"CI流水线需要设置 | 项目特定 | |
"Playwright的 | 通用 | |
.claude/undefined.claude/undefined
**Priority order for updates:**
1. `CLAUDE.md` (project root or `.claude/`) - General learnings, setup issues
2. `.claude/docs/troubleshooting.md` - If exists, for debugging insights
3. `.claude/docs/setup.md` - If exists, for environment/build issues
4. Create new file only if user requests it
**更新优先级:**
1. `CLAUDE.md`(项目根目录或`.claude/`下)- 通用学习内容、设置问题
2. `.claude/docs/troubleshooting.md`(如果存在)- 用于调试见解
3. `.claude/docs/setup.md`(如果存在)- 用于环境/构建问题
4. 仅在用户要求时创建新文件| Learning Type | Target Section | Example |
|---|---|---|
| Build/dependency issues | | npm flags, version requirements |
| Environment setup | | env vars, tool versions |
| Code patterns | | naming, architecture decisions |
| Known issues | | quirks, workarounds |
| Debugging insights | | how to diagnose specific problems |
| 学习内容类型 | 目标章节 | 示例 |
|---|---|---|
| 构建/依赖问题 | | npm参数、版本要求 |
| 环境设置 | | 环境变量、工具版本 |
| 代码模式 | | 命名规范、架构决策 |
| 已知问题 | | 特殊情况、解决方法 |
| 调试见解 | | 如何诊断特定问题 |
undefinedundefined
**Structure for pattern/convention learnings:**
```markdown
**基于模式/约定的学习内容结构:**
```markdown[Example if applicable]
**Structure for quick tips:**
```markdown
- [Concise actionable tip][如有适用的示例]
**快速提示结构:**
```markdown
- [简洁的可操作提示]I'll add this to `.claude/CLAUDE.md` under "## Troubleshooting":我会将此内容添加到`.claude/CLAUDE.md`的“## 故障排除”章节下:npm installnpm install --legacy-peer-deps
Wait for explicit user approval before writing.npm installnpm install --legacy-peer-deps
等待用户明确批准后再写入。undefinedundefinedundefinedundefinedtroubleshooting.mdsetup.mdpatterns.md.claude/docs/.claude/plans/troubleshooting.mdsetup.mdpatterns.md.claude/docs/.claude/plans/.claude/CLAUDE.md./CLAUDE.md.claude/CLAUDE.md.claude/docs/troubleshooting.md.claude/CLAUDE.md./CLAUDE.md.claude/CLAUDE.md.claude/docs/troubleshooting.mdundefinedundefinednpm install typescript@^5.3.0 --save-devundefinednpm install typescript@^5.3.0 --save-devundefinedundefinedundefined.env.localDATABASE_URLNEXTAUTH_SECRETopenssl rand -base64 32NEXTAUTH_URLhttp://localhost:3000undefined.env.localDATABASE_URLNEXTAUTH_SECRETopenssl rand -base64 32NEXTAUTH_URLhttp://localhost:3000undefinedundefinedundefinedApiErrorthrow new ApiError(404, "Resource not found");undefinedApiErrorthrow new ApiError(404, "Resource not found");undefined.claude/CLAUDE.md.claude/docs/*.md~/.claude/skills/~/.claude/commands/.claude/CLAUDE.md.claude/docs/*.md~/.claude/skills/~/.claude/commands/