故障排查
诊断命令
kuaimai-cli doctor --output json
kuaimai-cli auth status --output json
kuaimai-cli auth check system --output json
kuaimai-cli auth check open --output json
kuaimai-cli --verbose <command>
提交工单时建议附带:CLI 版本、doctor / auth status 的 JSON(不要 --reveal)、报错原文、操作系统与 Node 版本。
禁止提交:完整 accessToken、appSecret、refreshToken、含凭证的截图。
安装问题
| 现象 | 处理 |
|---|---|
kuaimai-cli: command not found | 确认全局 npm bin 在 PATH;重新 npx @kuaimai-cli/cli@latest install |
| 未安装 Node / npm | 安装 Node.js(推荐 20/22 LTS) |
| Node 版本过低 | 升级到 ≥16,建议 20+ |
| 安装二进制失败 / Gitee 超时 | 检查网络;KUAIMAI_CLI_PREFER_MIRROR=1 优先镜像;见 安装 |
| checksum 失败 | 勿跳过校验;换网络重试或固定版本重装 |
| npm registry 异常 | 检查 npm config get registry |