Problem entry · machine-readable · 多智能体编排

首次 npx ruflo init 很慢、npx 缓存约 2GB(磁盘敏感环境)

本页嵌入 #trove-entity JSON(本条目全量结构化数据);全库数据见 /agent/trove.json。

元数据

idruflo-4收录2026-09-19
问题域多智能体编排主题分组安装与依赖
适用工具ruflo

症状

`npx ruflo init` 首次安装约 5 分钟,磁盘占用明显变大。

原因

原生 prebuild 下载 + npx 缓存双份:2026-08-29 实测隔离 HOME 下 `~/.npm/_npx` 1.2GB + 全局 `~/.npm/_npx` 775MB(合计约 2GB 级),npx -y 每次运行都落缓存。

解法

1. 国内加速:`npm_config_registry=https://registry.npmmirror.com npx -y ruflo ...`(实测 init 全程秒级下载完成)。

2. 磁盘敏感:安装验证完清理 npx 缓存(`rm -rf ~/.npm/_npx` 或 `npm cache clean --force`),不影响已装项目。

3. init 用 `--no-signup --no-skills-sh --no-codex-detect` 跳过交互、注册与技能全量拉取,减少下载面。

验证证据

- 2026-08-29 实测:npmmirror init 成功(v3.38.20);写面 = 工作区 `.claude/`(agents/commands/helpers/settings.json/skills)+ `.claude-flow/`(CAPABILITIES.md/config.yaml/data/hooks/learning/logs)+ `.agents/skills/ruflo/SKILL.md` + `.swarm/` + `.mcp.json` + `CLAUDE.md` + `ruvector.db`(1.5MB)+ HOME `~/.claude/CLAUDE.md`;`--help` 会拉起后台 daemon,测完 `ruflo daemon stop` 停。

- 2026-08-27 基线:v3.38.20(npmmirror),prebuild 下载约 5 分钟、缓存 1.6GB。

来源与证据

素材来源:本站实测沉淀(2026-08-27)

验证证据:site docs#4;local repro log 2026-08-29