Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

docs(web-studio): clarify Node 22 development environment (#5227)

bot-of-qin-ctx88d9f8b5dd44
diff --git a/web-studio/README.md b/web-studio/README.md
index aa3335661..df2560a54 100644
--- a/web-studio/README.md
+++ b/web-studio/README.md
@@ -63,6 +63,10 @@ curl http://127.0.0.1:1933/bot/v1/health
### 2. Start Web Studio
+Use Node.js 22.x for local development, builds, and tests, matching the Studio build workflow.
+
+With the current Vitest/jsdom versions, Node.js 26 can cause `localStorage` errors during tests. If this occurs, switch to Node.js 22.x and run `npm ci && npm test` in `web-studio/`.
+
```bash
cd web-studio
npm install
diff --git a/web-studio/README_CN.md b/web-studio/README_CN.md
index 9eecf9b8b..d82c3af4a 100644
--- a/web-studio/README_CN.md
+++ b/web-studio/README_CN.md
@@ -63,6 +63,10 @@ curl http://127.0.0.1:1933/bot/v1/health
### 2. 启动 Web Studio
+本地开发、构建和测试请使用 Node.js 22.x,与 Studio 构建流程保持一致。
+
+当前 Vitest/jsdom 组合在 Node.js 26 下可能出现 `localStorage` 测试错误。遇到该问题时,请切换到 Node.js 22.x,并在 `web-studio/` 目录运行 `npm ci && npm test`。
+
```bash
cd web-studio
npm install