Window11下安装openclaw的微信插件@tencent-weixin/openclaw-weixin-cli@latest出现问题的解决过程记录
node node_modules\@tencent-weixin\openclaw-weixin-cli\bin\openclaw-weixin.js install --openclaw-bin .\openclaw.cmd为什么这个脚本一直报错?你说C:\Users\Lenovo\AppData\Roaming\npm>node node_modules\@tencent-weixin\op
与 Gemini 对话
你说npx -y @tencent-weixin/openclaw-weixin-cli@latest install
[openclaw-weixin] 未找到 openclaw,请先安装:
npm install -g openclaw
详见 https://docs.openclaw.ai/install
D:\openclawsolo>openclaw --version
OpenClaw 2026.3.13 (61d171a)
现在怎么办?
Gemini 说
看来你已经安装好了 openclaw,但微信 CLI 插件(openclaw-weixin-cli)可能因为环境变量路径或者 Shell 缓存的问题,没能正确识别到全局安装的 openclaw。
这种情况在 Windows 环境下很常见,通常是因为 npm install -g 的路径虽然在 PATH 中,但当前的终端进程还没反应过来。
你可以尝试以下几个步骤来解决:
1. 强制刷新环境
有时候终端会“记住”旧的状态。请尝试:
- 关闭当前的命令行窗口,重新打开一个新的 PowerShell 或 CMD。
- 再次运行你的命令:
npx -y @tencent-weixin/openclaw-weixin-cli@latest install
2. 手动关联安装
如果 npx 还是报错,建议先将微信插件也进行全局安装,让它们在同一个 node_modules 目录下“团聚”:
Bash
npm install -g @tencent-weixin/openclaw-weixin-cli安装完成后,直接运行 openclaw-weixin(或者根据文档提供的直接指令),而不是通过 npx。
3. 检查路径是否统一
由于你使用的是 D:\openclawsolo,请确认你的全局 npm 路径是否也在 D 盘。如果 openclaw 安装在了 D 盘,而 npm 默认的全局路径在 C 盘,插件可能会找不到主程序。
执行以下命令检查:
Bash
npm config get prefix确保返回的路径下,bin 或根目录里确实能看到 openclaw.cmd。
4. 终极手段:在当前目录安装
如果全局环境实在调不通,你可以直接在当前项目目录下安装,规避全局变量问题:
Bash
npm install openclaw npx -y @tencent-weixin/openclaw-weixin-cli@latest install
温馨提示: 既然 openclaw --version 已经能返回 2026.3.13,说明主程序是没问题的。这通常只是微信插件脚本里的一个路径检测逻辑(Check logic)比较死板。
需要我帮你写一个简单的脚本来检测你当前的系统环境变量具体指向哪里吗?
你说好
Gemini 说
既然你已经准备好了,我们直接动手解决这个“明明装了却报未找到”的问题。
请按照以下顺序操作,通常第一步就能解决:
第一步:直接使用全局命令
既然 openclaw --version 已经有输出了,说明你的全局变量里是有这个工具的。试试跳过 npx 的在线检测,直接安装插件:
Bash
npm install -g @tencent-weixin/openclaw-weixin-cli安装完成后,直接输入 openclaw-weixin 看看是否有响应。
第二步:如果报错依旧,手动“指路”
如果微信 CLI 脚本写得比较死板,它可能在寻找 node_modules 下的特定路径。你可以尝试在你的当前目录 D:\openclawsolo 下建立一个软连接(类似快捷方式),或者直接把 openclaw 安装到本地:
Bash
# 在当前项目目录下安装一次本地版本,这样插件绝对能找到 npm install openclaw --save-dev然后再运行:
Bash
npx @tencent-weixin/openclaw-weixin-cli install
第三步:检查 Node 运行环境
有时候我们在 CMD 里能看到版本,但 npx 运行在一个不同的 Shell 环境下。请执行以下命令确认:
where openclaw(Windows CMD) 或get-command openclaw(PowerShell)
- 确认路径是否在
C:\Users\你的用户名\AppData\Roaming\npm或者你自定义的 Node 路径下。
npm config get registry
- 如果你使用的是镜像源(如淘宝源),尝试切换回官方源试试,有时候包版本同步会有延迟:
npm config set registry https://registry.npmjs.org/
为什么会这样?
这通常是因为 openclaw-weixin-cli 的内部安装脚本(Install Script)使用了类似 which openclaw 的指令来校验。如果你的 openclaw 是通过特殊的安装方式(比如手动下载 exe 放到文件夹)而不是通过 npm install -g 安装的,脚本就会“拒不认账”。
操作完以上步骤后,运行 openclaw-weixin --version 试试看?
你说C:\Users\Lenovo>npx -y @tencent-weixin/openclaw-weixin-cli@latest install
[openclaw-weixin] 未找到 openclaw,请先安装:
npm install -g openclaw
详见 https://docs.openclaw.ai/install
C:\Users\Lenovo>npx -y @tencent-weixin/openclaw-weixin-cli@latest install
C:\Users\Lenovo>npm install -g @tencent-weixin/openclaw-weixin-cli
added 1 package in 6s
C:\Users\Lenovo>openclaw-weixin
'openclaw-weixin' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Gemini 说
看来问题出在 npm 全局 bin 目录没有被正确添加到 Windows 的环境变量 PATH 中。虽然你安装了包,但系统不知道去哪里执行它。
这种情况在 Lenovo 等预装系统中很常见,通常是 npm 的默认路径设置得比较隐蔽。
请按照以下步骤快速修复:
1. 找到你的 npm 真正安装路径
在终端输入以下命令:
DOS
npm config get prefix它通常会返回类似 C:\Users\Lenovo\AppData\Roaming\npm 的路径。
2. 手动去该目录下寻找
请打开文件资源管理器,进入上面显示的那个路径,看看里面是否有以下文件:
openclaw.cmdopenclaw-weixin.cmd
如果这两个文件都在那里: 说明你的环境变量(Path)确实没配好。
3. 终极解决:直接用 Node 运行(跳过环境变量)
如果你不想折腾复杂的 Windows 环境变量设置,可以用这个“暴力”但有效的方法直接运行安装脚本:
DOS
node "%AppData%\npm\node_modules\@tencent-weixin\openclaw-weixin-cli\bin\openclaw-weixin.js" install(注意:如果你的 npm prefix 不是默认路径,请将 %AppData%\npm 替换为你第一步查到的路径)
4. 彻底修复:添加环境变量
为了以后长久使用方便,建议还是修一下 PATH:
- 按
Win + R,输入sysdm.cpl回车。 - 点击 高级 选项卡 -> 环境变量。
- 在“用户变量”中找到 Path,点击编辑。
- 点击“新建”,把第一步查到的那个
prefix路径(比如C:\Users\Lenovo\AppData\Roaming\npm)粘贴进去。 - 重启你的命令行窗口(CMD 或 PowerShell),现在直接输入
openclaw-weixin应该就能用了。
你可以先试试第三步的那行代码,看看能不能绕过报错完成安装?
你说C:\Users\Lenovo>npx -y @tencent-weixin/openclaw-weixin-cli@latest install
[openclaw-weixin] 未找到 openclaw,请先安装:
npm install -g openclaw
详见 https://docs.openclaw.ai/install
C:\Users\Lenovo>npx -y @tencent-weixin/openclaw-weixin-cli@latest install
C:\Users\Lenovo>npm install -g @tencent-weixin/openclaw-weixin-cli
added 1 package in 6s
C:\Users\Lenovo>openclaw-weixin
'openclaw-weixin' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Gemini 说
这说明你的 npm 全局安装路径(Global Bin)没有被添加到 Windows 的系统环境变量 (PATH) 中。
虽然你通过 npm install -g 安装成功了,但系统找不到 openclaw-weixin 这个可执行文件在哪里。
请按照以下步骤快速修复:
1. 找到你的 npm “藏身之处”
在命令行输入:
DOS
npm config get prefix它通常会返回类似:C:\Users\Lenovo\AppData\Roaming\npm。
2. 检查该目录下是否有文件
打开文件夹(你可以直接把上面的路径粘贴到资源管理器的地址栏),看看里面是否有:
openclaw.cmdopenclaw-weixin.cmd
3. 两种解决办法(选一个即可)
方法 A:直接通过路径运行(最快,不折腾系统)
如果不想改环境变量,直接用 Node 指向插件的脚本位置运行安装:
DOS
node "%AppData%\npm\node_modules\@tencent-weixin\openclaw-weixin-cli\bin\openclaw-weixin.js" install(如果报错,请检查 %AppData%\npm 是否为你第一步查到的路径)
方法 B:修复环境变量(一劳永逸)
- 按
Win + R键,输入sysdm.cpl并回车。 - 点击 高级 选项卡 -> 环境变量。
- 在 用户变量 框里找到 Path,点击 编辑。
- 点击 新建,把第 1 步查到的路径(例如
C:\Users\Lenovo\AppData\Roaming\npm)粘贴进去。 - 关键: 点击确定保存后,必须关闭并重新打开一个新的 CMD 窗口。
4. 为什么之前报错“未找到 openclaw”?
这是因为 @tencent-weixin/openclaw-weixin-cli 这个插件在运行 install 时,内部会执行一个 which openclaw(或者类似的检测)。由于你的环境变量没配好,即使 openclaw 就在磁盘里,插件的脚本也“看不见”它。
你可以先尝试方法 A 的那行长命令,看看是否能顺利跳过检测开始安装?

你说有
分析
Gemini 说
太好了!图里清清楚楚地显示 openclaw.cmd 和 weixin-installer.cmd 都在这个目录下。
问题原因: 你的终端当前路径在 C:\Users\Lenovo,而这些工具安装在 Sampson 这个用户的目录下(或者是两个不同的用户账户,或者是手动配置了 npm 路径)。系统找不到命令是因为你的 环境变量 Path 没有包含这个文件夹。
你可以直接通过以下两种方式解决:
方案 A:直接在当前目录下运行(最稳妥)
既然你在资源管理器已经打开了这个文件夹,可以直接在这个文件夹的地址栏输入 cmd 并回车,然后在弹出的黑色窗口里运行:
Bash
weixin-installer install
方案 B:在任意位置运行(修正环境变量)
如果你希望以后在任何地方都能用,请按以下步骤操作:
- 复制你图片顶部的路径:
C:\Users\Sampson\AppData\Roaming\npm - 点击 开始菜单,搜索并打开 “编辑系统环境变量”。
- 点击右下角的 “环境变量” 按钮。
- 在下方的 “系统变量”(或者上方的用户变量)里找到 Path,双击它。
- 点击右侧的 “新建”,把刚才复制的路径粘贴进去。
- 一路点“确定”保存。
- 【非常重要】:关闭你现在所有的 CMD 或 PowerShell 窗口,重新打开一个。
方案 C:暴力直接执行(如果你急着用)
直接在你的 CMD 里输入这行长命令(注意用户名是 Sampson):
DOS
"C:\Users\Sampson\AppData\Roaming\npm\weixin-installer.cmd" install小贴士: 由于你安装的是 @tencent-weixin/openclaw-weixin-cli,在你的截图里它对应的命令名似乎是 weixin-installer。
运行完上面的命令后,微信开发者工具的插件环境应该就配置好了。需要我帮你检查一下安装后的状态吗?
你说C:\Users\Lenovo>npm config get prefix
C:\Users\Lenovo\AppData\Roaming\npm
C:\Users\Lenovo>node "%AppData%\npm\node_modules\@tencent-weixin\openclaw-weixin-cli\bin\openclaw-weixin.js" install
node:internal/modules/cjs/loader:1459
throw err;
^
Error: Cannot find module 'C:\Users\Lenovo\AppData\Roaming\npm\node_modules\@tencent-weixin\openclaw-weixin-cli\bin\openclaw-weixin.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1456:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1066:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1071:22)
at Module._load (node:internal/modules/cjs/loader:1242:25)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
at node:internal/main/run_main_module:33:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v24.14.0
C:\Users\Lenovo>node "C:\Users\Lenovo\AppData\Roaming\npm\node_modules\@tencent-weixin\openclaw-weixin-cli\bin\openclaw-weixin.js" install
node:internal/modules/cjs/loader:1459
throw err;
^
Error: Cannot find module 'C:\Users\Lenovo\AppData\Roaming\npm\node_modules\@tencent-weixin\openclaw-weixin-cli\bin\openclaw-weixin.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1456:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1066:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1071:22)
at Module._load (node:internal/modules/cjs/loader:1242:25)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
at node:internal/main/run_main_module:33:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v24.14.0
C:\Users\Lenovo>weixin-installer install
[openclaw-weixin] 未找到 openclaw,请先安装:
npm install -g openclaw
详见 https://docs.openclaw.ai/install
C:\Users\Lenovo>"C:\Users\Sampson\AppData\Roaming\npm\weixin-installer.cmd" install
系统找不到指定的路径。
C:\Users\Lenovo>
Gemini 说
这就很真相了。你的电脑里出现了路径打架:
- 你的
npm config get prefix指向的是C:\Users\Lenovo\...。 - 但你截图显示的路径却是
C:\Users\Sampson\...。 - 最关键的一点:你的截图里那个命令叫
weixin-installer,而不是openclaw-weixin。
这说明你现在用的命令行账号(Lenovo)和安装文件的账号(Sampson)不一致,或者 npm 路径配置发生了偏移。
既然 weixin-installer 能跑起来(虽然报未找到),说明它在你的 Path 里。
之所以它报“未找到 openclaw”,是因为它在检测 openclaw 的时候,由于环境变量混乱,它没能识别到同目录下的 openclaw.cmd。
最简单、粗暴的终极解决方法:
不要管全局路径了,我们直接通过全路径强制让它们握手。请在你的 CMD 中依次执行这两行(直接复制):
第一步:进入那个有文件的目录
DOS
cd /d C:\Users\Sampson\AppData\Roaming\npm第二步:用当前目录下的 installer 去安装当前目录下的 openclaw
DOS
.\weixin-installer.cmd install --openclaw-path .\openclaw.cmd
如果上面的命令提示参数错误,请尝试这个“伪装”大法:
如果 weixin-installer 不支持手动指定路径,我们就把这个目录临时加入当前窗口的最前面,让它避开所有干扰:
DOS
set PATH=C:\Users\Sampson\AppData\Roaming\npm;%PATH% weixin-installer install为什么这样做能行? 因为 set PATH=... 会告诉系统:“不管你在哪找,先来 Sampson 这个文件夹里找”。这样它运行 weixin-installer 的时候,一眼就能看到旁边的 openclaw。
试一下 set PATH 这一招,看看能不能成功跳过那个“未找到 openclaw”的报错?
你说C:\Users\Lenovo>weixin-installer install
[openclaw-weixin] 未找到 openclaw,请先安装:
npm install -g openclaw
详见 https://docs.openclaw.ai/install
C:\Users\Lenovo>"C:\Users\Sampson\AppData\Roaming\npm\weixin-installer.cmd" install
系统找不到指定的路径。
C:\Users\Lenovo>cd /d C:\Users\Sampson\AppData\Roaming\npm
系统找不到指定的路径。
C:\Users\Lenovo>cd .antigravity
C:\Users\Lenovo\.antigravity>cd ..
C:\Users\Lenovo>cd "AppData\Roaming\npm"
C:\Users\Lenovo\AppData\Roaming\npm>.\weixin-installer.cmd install --openclaw-path .\openclaw.cmd
[openclaw-weixin] 未找到 openclaw,请先安装:
npm install -g openclaw
详见 https://docs.openclaw.ai/install
C:\Users\Lenovo\AppData\Roaming\npm>
Gemini 说
这就非常清晰了!问题的根源在于:虽然你在 C:\Users\Lenovo\AppData\Roaming\npm 目录下,且 openclaw.cmd 就在你眼前,但 weixin-installer 脚本的检测逻辑只认 PATH 环境变量,它不会自动看一眼自己身边的文件。
在 Windows 终端里,即便你在当前文件夹,如果你不把当前文件夹加入 PATH,脚本运行 where openclaw 时依然会返回空。
请在当前的 C:\Users\Lenovo\AppData\Roaming\npm> 提示符下,按顺序执行这两行:
1. 临时强制注入环境变量
这一步是告诉当前这个窗口:“先在我脚下这个目录找东西!”
DOS
set PATH=%cd%;%PATH%2. 再次运行安装
DOS
weixin-installer install
为什么这样一定行?
因为当你执行了 set PATH=%cd%;%PATH% 后:
%cd%代表你当前的路径(即...\npm)。- 当你运行
weixin-installer时,它内部调用的检测命令会优先扫描这个路径。 - 它能瞬间“看见”同目录下的
openclaw.cmd,从而通过自检。
如果以后还想在其他地方用:
你现在的解决办法只是“临时抢救”。要永久解决,你需要把 C:\Users\Lenovo\AppData\Roaming\npm 真正加到系统的 Path 变量里(参考我之前的方案 B)。
试试这两行命令,这次应该能顺利跳过“未找到”的提示进入安装流程了吧?
你说C:\Users\Lenovo\AppData\Roaming\npm>set PATH=%cd%;%PATH%
C:\Users\Lenovo\AppData\Roaming\npm>weixin-installer install
[openclaw-weixin] 未找到 openclaw,请先安装:
npm install -g openclaw
详见 https://docs.openclaw.ai/install
C:\Users\Lenovo\AppData\Roaming\npm>
Gemini 说
这个 weixin-installer 的检测脚本写得实在太“死”了。即使你已经把它所在的目录加进了 PATH,它内部的 which 或 where 命令可能依然因为 Windows 缓存或者脚本内部逻辑(比如只认 .exe 而不认 .cmd)而报错。
既然我们已经站在 C:\Users\Lenovo\AppData\Roaming\npm 目录下了,直接绕过脚本的检测逻辑,强行运行它的核心安装代码。
请尝试执行这一行(这是直接跳过 shell 包装,运行 JS 源码):
DOS
node node_modules\@tencent-weixin\openclaw-weixin-cli\bin\openclaw-weixin.js install
如果还是提示“未找到 openclaw”,请用这个“终极杀招”:
这个脚本内部大概率是用 child_process.execSync('openclaw --version') 之类的命令来检查的。我们可以通过手动指定 OpenClaw 的路径来堵住它的嘴:
DOS
node node_modules\@tencent-weixin\openclaw-weixin-cli\bin\openclaw-weixin.js install --openclaw-bin .\openclaw.cmd为什么这个脚本一直报错?
通常有三个可能:
- 后缀名问题:脚本在找
openclaw(无后缀),但 Windows 上是openclaw.cmd。 - 缓存延迟:虽然
set PATH了,但node进程内部的环境变量可能没有立即更新。 - 权限限制:某些安装脚本需要管理员权限才能检测全局组件。
如果上面两行 node 命令还是报错,请告诉我报错的具体内容(是 MODULE_NOT_FOUND 还是同样的“未找到 openclaw”?)。 如果报错是 MODULE_NOT_FOUND,请确认一下在当前目录下输入 dir node_modules\@tencent-weixin 能不能看到文件夹。
你说C:\Users\Lenovo\AppData\Roaming\npm>node node_modules\@tencent-weixin\openclaw-weixin-cli\bin\openclaw-weixin.js install
node:internal/modules/cjs/loader:1459
throw err;
^
Error: Cannot find module 'C:\Users\Lenovo\AppData\Roaming\npm\node_modules\@tencent-weixin\openclaw-weixin-cli\bin\openclaw-weixin.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1456:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1066:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1071:22)
at Module._load (node:internal/modules/cjs/loader:1242:25)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
at node:internal/main/run_main_module:33:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v24.14.0
C:\Users\Lenovo\AppData\Roaming\npm>node node_modules\@tencent-weixin\openclaw-weixin-cli\bin\openclaw-weixin.js install --openclaw-bin .\openclaw.cmd
node:internal/modules/cjs/loader:1459
throw err;
^
Error: Cannot find module 'C:\Users\Lenovo\AppData\Roaming\npm\node_modules\@tencent-weixin\openclaw-weixin-cli\bin\openclaw-weixin.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1456:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1066:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1071:22)
at Module._load (node:internal/modules/cjs/loader:1242:25)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
at node:internal/main/run_main_module:33:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v24.14.0
C:\Users\Lenovo\AppData\Roaming\npm>
Gemini 说
看来这个包的内部结构和你想象的不太一样。虽然我们在外层看到了 weixin-installer.cmd,但它可能并不是由 @tencent-weixin/openclaw-weixin-cli 这个名字直接生成的,或者包名对应的目录结构比较特殊。
我们用最直接的方法来看看这个目录下到底藏了什么,然后精准打击。
1. 确认模块真实路径
请在当前目录下执行:
DOS
dir node_modules\@tencent-weixin这会列出该文件夹下所有的子文件夹。请看一眼里面到底叫什么(可能是 openclaw-weixin-cli,也可能是别的)。
2. 如果路径是对的,为什么报错?
报错 MODULE_NOT_FOUND 说明 bin\openclaw-weixin.js 这个文件路径不对。 既然你已经全局安装了,我们可以利用 npm 自己的逻辑来定位它。请尝试:
DOS
# 这一步会自动找到正确的 JS 文件并运行 install npm explore @tencent-weixin/openclaw-weixin-cli --global -- npm run install
3. “终极手动版” (如果上面都失败)
既然 weixin-installer.cmd 就在你面前,而且它能运行(只是检测不到 openclaw),我们强行把 openclaw 塞到它嘴里。
既然 set PATH 没生效,是因为 CMD 窗口的当前进程可能没有刷新环境变量。请尝试这个命令:
DOS
# 先进入目录 cd /d C:\Users\Lenovo\AppData\Roaming\npm # 强行把当前目录下的 openclaw.cmd 复制一个叫 openclaw (不带后缀) copy openclaw.cmd openclaw # 然后直接运行安装程序 .\weixin-installer.cmd install为什么这么做? 很多 Node.js 写的 CLI 工具在 Windows 上检测命令时,如果代码写的是 which('openclaw'),它可能在某些环境下死活认不出 .cmd 后缀。我们手动复制一个不带后缀的文件,通常能骗过它的自检逻辑。
如果 dir 命令的结果出来了,可以发给我看看吗?我想确认一下那个 JS 文件的准确位置。
你说Node.js v24.14.0
C:\Users\Lenovo\AppData\Roaming\npm>node node_modules\@tencent-weixin\openclaw-weixin-cli\bin\openclaw-weixin.js install --openclaw-bin .\openclaw.cmd
node:internal/modules/cjs/loader:1459
throw err;
^
Error: Cannot find module 'C:\Users\Lenovo\AppData\Roaming\npm\node_modules\@tencent-weixin\openclaw-weixin-cli\bin\openclaw-weixin.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1456:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1066:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1071:22)
at Module._load (node:internal/modules/cjs/loader:1242:25)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
at node:internal/main/run_main_module:33:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v24.14.0
C:\Users\Lenovo\AppData\Roaming\npm>dir node_modules\@tencent-weixin
驱动器 C 中的卷是 Windows
卷的序列号是 B4A6-4A14
C:\Users\Lenovo\AppData\Roaming\npm\node_modules\@tencent-weixin 的目录
2026-03-22 14:23 <DIR> .
2026-03-22 14:23 <DIR> ..
2026-03-22 14:23 <DIR> openclaw-weixin-cli
0 个文件 0 字节
3 个目录 77,772,988,416 可用字节
C:\Users\Lenovo\AppData\Roaming\npm># 这一步会自动找到正确的 JS 文件并运行 install
'#' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
C:\Users\Lenovo\AppData\Roaming\npm>npm explore @tencent-weixin/openclaw-weixin-cli --global -- npm run install
npm error Missing script: "install"
npm error
npm error Did you mean this?
npm error npm uninstall # Remove a package
npm error
npm error To see a list of scripts, run:
npm error npm run
npm error A complete log of this run can be found in: C:\Users\Lenovo\AppData\Local\npm-cache\_logs\2026-03-22T06_35_46_677Z-debug-0.log
npm error code 1
npm error path C:\Users\Lenovo\AppData\Roaming\npm\node_modules\@tencent-weixin\openclaw-weixin-cli
npm error command failed
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c npm run install
npm error A complete log of this run can be found in: C:\Users\Lenovo\AppData\Local\npm-cache\_logs\2026-03-22T06_35_45_019Z-debug-0.log
C:\Users\Lenovo\AppData\Roaming\npm># 先进入目录
'#' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
C:\Users\Lenovo\AppData\Roaming\npm>cd /d C:\Users\Lenovo\AppData\Roaming\npm
C:\Users\Lenovo\AppData\Roaming\npm>
C:\Users\Lenovo\AppData\Roaming\npm># 强行把当前目录下的 openclaw.cmd 复制一个叫 openclaw (不带后缀)
'#' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
C:\Users\Lenovo\AppData\Roaming\npm>copy openclaw.cmd openclaw
覆盖 openclaw 吗? (Yes/No/All):
覆盖 openclaw 吗? (Yes/No/All):
Gemini 说
现在的局面非常明确了:你的目录里已经有了 openclaw 的克隆体(无后缀版),现在只需临门一脚,让 weixin-installer 在执行检测时能“撞见”它。
请在当前的 C:\Users\Lenovo\AppData\Roaming\npm> 提示符下,完全复制并执行以下这行命令:
DOS
set PATH=%cd%;%PATH% && weixin-installer install
为什么这次能成?
- 路径覆盖:
set PATH=%cd%;%PATH%强制让当前这个命令行窗口最优先查找当前目录(即...\npm)。 - 躲过检测:你刚才做的
copy openclaw.cmd openclaw非常关键。很多 Node.js 脚本在检测环境时,由于代码习惯问题,往往只搜索openclaw而不是openclaw.cmd。现在你手里既有“正牌”也有“影子”,它怎么搜都能搜到。 - 链式执行:使用
&&确保环境变量生效后立即执行安装程序。
如果它提示“覆盖 openclaw 吗?”,请先输入 y 回车:
如果你刚才没操作完,请先处理那个 copy 命令:
- 输入
y并按回车。 - 然后运行上面的
set PATH...那一行。
后续建议: 一旦这次 install 成功,由于你的 npm 路径(C:\Users\Lenovo\AppData\Roaming\npm)目前不在系统的全局 Path 里,建议你忙完这一阵后,参考我之前说的方案 B 把它永久加进系统环境变量。否则以后每次换个文件夹,你可能还得重复这个“set PATH”的过程。
如果运行后还是报同样的错误,请告诉我,我带你直接去改它的源码检测逻辑(只需删一行代码)。
你说C:\Users\Lenovo\AppData\Roaming\npm>
C:\Users\Lenovo\AppData\Roaming\npm># 强行把当前目录下的 openclaw.cmd 复制一个叫 openclaw (不带后缀)
'#' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
C:\Users\Lenovo\AppData\Roaming\npm>copy openclaw.cmd openclaw
覆盖 openclaw 吗? (Yes/No/All):
覆盖 openclaw 吗? (Yes/No/All):
已复制 0 个文件。
C:\Users\Lenovo\AppData\Roaming\npm>set PATH=%cd%;%PATH% && weixin-installer install
[openclaw-weixin] 未找到 openclaw,请先安装:
npm install -g openclaw
详见 https://docs.openclaw.ai/install
C:\Users\Lenovo\AppData\Roaming\npm>copy openclaw.cmd openclaw
覆盖 openclaw 吗? (Yes/No/All): Y
已复制 1 个文件。
C:\Users\Lenovo\AppData\Roaming\npm>set PATH=%cd%;%PATH% && weixin-installer install
[openclaw-weixin] 未找到 openclaw,请先安装:
npm install -g openclaw
详见 https://docs.openclaw.ai/install
C:\Users\Lenovo\AppData\Roaming\npm>
显示思路
Gemini 说
这个安装脚本的检测逻辑简直可以用“冥顽不灵”来形容了。文件明明已经怼在它脸上了,它还是装作看不见。
这通常是因为写这个脚本的开发者没有充分考虑 Windows 环境(比如 child_process.exec 在执行环境路径上的差异,或者强行用纯字符串匹配了错误的包名)。
既然通过正规的环境变量“讲道理”行不通,我们直接切换到黑客模式:直接去改它的源代码,把这句报错检测的逻辑删掉!
请在当前的 C:\Users\Lenovo\AppData\Roaming\npm> 目录下,按顺序跟我做:
第一步:顺藤摸瓜,找到真凶
这个 weixin-installer.cmd 只是一个外壳,里面包裹着真正的 JS 脚本路径。我们需要知道它到底运行的是哪个文件。 请执行:
DOS
type weixin-installer.cmd第二步:把结果发给我
执行完毕后,屏幕上会打印出几行代码,通常长这样: @ECHO off node "%~dp0\node_modules\@tencent-weixin\openclaw-weixin-cli\xxxx\xxxx.js" %*
请把打印出来的这几行内容直接复制发给我。 拿到路径后,我会教你用一句命令打开那个 JS 文件,搜索 "未找到 openclaw",然后删掉那几行拦路的 if 检测代码。直接物理绕过,看它还怎么拦我们!
你说C:\Users\Lenovo\AppData\Roaming\npm>type weixin-installer.cmd
@ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL
CALL :find_dp0
IF EXIST "%dp0%\node.exe" (
SET "_prog=%dp0%\node.exe"
) ELSE (
SET "_prog=node"
SET PATHEXT=%PATHEXT:;.JS;=;%
)
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\node_modules\@tencent-weixin\openclaw-weixin-cli\cli.mjs" %*
C:\Users\Lenovo\AppData\Roaming\npm>
显示思路
Gemini 说
抓到它了!真正的幕后黑手就是这个文件:cli.mjs。
它绕过了所有的 Windows 环境变量,很可能在内部写死了某种检测逻辑(比如强行检测注册表,或者用一个不支持 Windows .cmd 后缀的跨平台写法)。
既然常规手段跟它讲不通,我们就直接给它做个“外科手术”,把报错这几行代码切掉。
请在当前的黑窗口里,执行下面这行命令(这会直接用系统自带的记事本打开它的源代码):
DOS
notepad "node_modules\@tencent-weixin\openclaw-weixin-cli\cli.mjs"接下来在记事本里这样做(只需 3 步):
- 按下
Ctrl + F,在查找框里输入关键字:未找到 openclaw,然后点击“查找下一个”。 - 找到这行文字后,你会看到它周围的代码大概长这样(可能是
if判断,也可能是直接的报错代码):
JavaScript
if (some_condition) { console.log("[openclaw-weixin] 未找到 openclaw,请先安装:..."); process.exit(1); // 或者 return、throw error 等 } - 把这一整段报错的代码删掉。或者,如果你怕删错,就在这几行代码的最前面都加上
//(双斜杠代表注释掉,让代码失效)。 特别注意:一定要把紧挨着报错语句的那个process.exit(1)或者throw给干掉,因为正是它强行终止了安装。 - 按下
Ctrl + S保存文件,然后关闭记事本。
最后一步见证奇迹:
回到你的命令行窗口,再次大摇大摆地执行:
DOS
weixin-installer install因为拦路虎已经被我们从物理层面“超度”了,这次它应该会乖乖往下走,开始真正的安装流程。
修改代码的时候如果遇到一大坨看不懂的代码,或者不确定删哪一行,可以把记事本里搜到的那几行复制发给我,我来帮你精准定位!
你说function install() {
// 1. Check openclaw is installed
if (!which("openclaw")) {
error("未找到 openclaw,请先安装:");
console.log(" npm install -g openclaw");
console.log(" 详见 https://docs.openclaw.ai/install");
process.exit(1);
}
log("已找到本地安装的 openclaw");
显示思路
Gemini 说
就是它!这段代码简直就是典型的“跨平台水土不服”。它使用的 which("openclaw") 在 Linux/macOS 上没问题,但在 Windows 上,它死板地只找 openclaw,却不认 openclaw.cmd,导致它变成了拦路虎。
我们直接给它做个“微创手术”。
请在记事本里,把这段代码改成下面这样(最简单的办法就是给这几行加上 // 注释掉,或者直接改成 if (false)):
修改前:
JavaScript
function install() { // 1. Check openclaw is installed if (!which("openclaw")) { error("未找到 openclaw,请先安装:"); console.log(" npm install -g openclaw"); console.log(" 详见 https://docs.openclaw.ai/install"); process.exit(1); } log("已找到本地安装的 openclaw");修改后(直接把这段复制替换进去):
JavaScript
function install() { // 1. Check openclaw is installed // 我们手动干掉这里的检测 if (false) { error("未找到 openclaw,请先安装:"); console.log(" npm install -g openclaw"); console.log(" 详见 https://docs.openclaw.ai/install"); process.exit(1); } log("已找到本地安装的 openclaw");
最后的操作步骤:
- 把
if (!which("openclaw"))改成if (false)。 - 按下
Ctrl + S保存文件,然后关掉记事本。 - 回到你的那个黑色命令行窗口,最后一次敲下这行命令:
DOS
weixin-installer install这回它绝对会乖乖打印出 "已找到本地安装的 openclaw",然后继续往下走了!
快试试看,成功跑起来了吗?
你说C:\Users\Lenovo\AppData\Roaming\npm>weixin-installer install
[openclaw-weixin] 已找到本地安装的 openclaw
[openclaw-weixin] 正在安装插件...
卡住了
显示思路
Gemini 说
太棒了,第一关的“死板检测”终于被我们强行闯过去了!看到 正在安装插件... 说明代码已经进入了核心的安装流程。
为什么会卡住? 通常在这一步,脚本会在后台静默执行网络请求(比如从 GitHub 下载预编译的包、拉取特定的依赖,或者执行底层的 npm install)。由于国内的网络环境,如果工具没有自动走镜像源,下载国外资源时极其容易出现“无限期挂起”或没有任何进度条的假死状态。
我们可以按下面的步骤来对付它:
1. 先让子弹飞一会儿
有些工具的下载逻辑写得比较简陋,几时 MB 的文件在后台慢慢下,没有任何提示。建议你先去喝口水,等个 2~3 分钟,看看它会不会因为网络超时而报错,或者奇迹般地自己下完。
2. 强行中断,揪出真凶
如果等了几分钟还是死气沉沉毫无反应,请在命令行里按下键盘上的 Ctrl + C 强行终止它(如果提示“是否终止批处理操作”,输入 Y 回车)。
既然我们已经掌握了看源码的技能,不如再深挖一步,看看它到底卡在哪句代码上了。 请再次在黑窗口执行:
DOS
notepad "node_modules\@tencent-weixin\openclaw-weixin-cli\cli.mjs"打开记事本后,找到我们刚才改过的那行 log("已找到本地安装的 openclaw");。 向下看,你应该能看到 console.log("正在安装插件..."); 或者类似的语句。
请把紧接着 正在安装插件... 下面的 5 到 10 行代码复制发给我。
我想看看它在这个提示之后,具体执行了什么网络请求或是子命令(大概率是类似 execSync(...) 或 download(...) 的逻辑)。找到了它的真实意图,我们就能手动帮它完成,或者给它挂个代理!
你说有代理的
显示思路
Gemini 说
有代理就太好了!但问题往往出在:Node.js 脚本和 Windows 的 CMD 窗口通常是个“瞎子”,它们默认不会走你系统的全局代理(即使你开了代理软件,它还是会在后台直连,然后被墙卡死)。
为了让这个安装脚本乖乖走你的代理,我们需要在当前的黑窗口里强行给它指路。
请按以下步骤操作:
第一步:强行中断当前的死等
在那个卡住的窗口里,按下键盘上的 Ctrl + C,如果提示“是否终止批处理操作”,输入 Y 并回车,把它停掉。
第二步:给当前窗口注入代理变量
假设你的代理软件本地端口是 7890(Clash 等大部分软件的默认端口,如果是别的,请把 7890 换成你实际的端口)。 在黑窗口里依次执行这四行命令:
DOS
set HTTP_PROXY=http://127.0.0.1:7890 set HTTPS_PROXY=http://127.0.0.1:7890 npm config set proxy http://127.0.0.1:7890 npm config set https-proxy http://127.0.0.1:7890(前两行是管 Node.js 自身网络请求的,后两行是防备它在底层偷偷调取 npm 去下载依赖的。)
第三步:重新发起冲锋
代理变量设置好后,立刻再次运行:
DOS
weixin-installer install
如果加了代理还是卡住: 那说明它卡住的原因可能根本不是网络问题。有些插件安装时会在后台静默解压巨大的文件,或者在等待某个需要交互的确认(但被外壳吃掉了不显示)。
要是等了 2 分钟还不行,那就得按我上一条说的,用记事本打开 cli.mjs,把你搜到的 log("已找到本地安装的 openclaw"); 下面那 5~10 行代码发给我看看。咱们直接拆了它的黑盒,看看它到底在后台干什么勾当!
C:\Users\Lenovo\AppData\Roaming\npm>openclaw gateway install
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
OpenClaw 2026.3.13 (61d171a) — I've seen your commit messages. We'll work on that together.
|
o Config warnings -------------------------------------------------------------------------+
| |
| - plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may |
| be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts) |
| |
+-------------------------------------------------------------------------------------------+
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
15:27:17 [plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: feishu (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts), openclaw-weixin (C:\Users\Lenovo\.openclaw\extensions\openclaw-weixin\index.ts). Set plugins.allow to explicit trusted ids.
15:28:46 [plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes
15:28:46 [plugins] feishu_chat: Registered feishu_chat tool
15:28:46 [plugins] feishu_wiki: Registered feishu_wiki tool
15:28:46 [plugins] feishu_drive: Registered feishu_drive tool
15:28:46 [plugins] feishu_bitable: Registered bitable tools
Gateway install failed: Error: schtasks create failed: ����: �ܾ����ʡ�
C:\Users\Lenovo\AppData\Roaming\npm>openclaw channels login --channel openclaw-weixin
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
OpenClaw 2026.3.13 (61d171a) — Hot reload for config, cold sweat for deploys.
|
o Config warnings -------------------------------------------------------------------------+
| |
| - plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may |
| be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts) |
| |
+-------------------------------------------------------------------------------------------+
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
15:35:54 [plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: feishu (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts), openclaw-weixin (C:\Users\Lenovo\.openclaw\extensions\openclaw-weixin\index.ts). Set plugins.allow to explicit trusted ids.
15:36:35 [plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes
15:36:35 [plugins] feishu_chat: Registered feishu_chat tool
15:36:35 [plugins] feishu_wiki: Registered feishu_wiki tool
15:36:35 [plugins] feishu_drive: Registered feishu_drive tool
15:36:35 [plugins] feishu_bitable: Registered bitable tools
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
正在启动微信扫码登录...
15:36:49 [plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: feishu (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts), openclaw-weixin (C:\Users\Lenovo\.openclaw\extensions\openclaw-weixin\index.ts). Set plugins.allow to explicit trusted ids.
15:36:49 [plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes
15:36:49 [plugins] feishu_chat: Registered feishu_chat tool
15:36:49 [plugins] feishu_wiki: Registered feishu_wiki tool
15:36:49 [plugins] feishu_drive: Registered feishu_drive tool
15:36:49 [plugins] feishu_bitable: Registered bitable tools
Failed to start login: TypeError: fetch failed
Channel login failed: Error: Failed to start login: TypeError: fetch failed
C:\Users\Lenovo\AppData\Roaming\npm>
显示思路
Gemini 说
看来我们遇到了两个连环相扣的小问题,但真相其实非常简单!
1. 为什么 gateway install 会报错乱码?
你看到的这行乱码 : ܾʡ,其实是 Windows 系统的 GBK 编码在英文环境里显示错乱了,它的真面目是四个字:“拒绝访问”。 openclaw gateway install 试图在你的 Windows 系统里创建一个后台定时任务(schtasks),但这需要管理员权限,而你当前的 CMD 窗口只是普通权限。
2. 为什么 channels login 会报 fetch failed?
因为第一步的网关(Gateway)没装上,也没有运行起来。微信登录插件需要通过本地网络去和网关通信,网关不在家,插件敲门没人应,所以就报了 fetch failed(网络请求失败)。
我们有两种方法可以解决,任选其一即可:
方案 A:开两个窗口“双持”(最快,立刻就能试)
既然安装到后台需要管理员权限,我们直接让它在前台跑就行了。
- 在当前的黑窗口里,直接输入并回车:
DOS
openclaw gateway(注意:不要加install)。按下回车后,只要它没报错退出,光标一直闪,就说明网关已经成功跑起来了!千万不要关闭这个窗口。 - 重新打开一个全新的 CMD 窗口(按
Win + R输入cmd回车)。 - 在新窗口里运行微信登录命令:
DOS
openclaw channels login --channel openclaw-weixin这次网关就在隔壁窗口候着,二维码应该就能顺利刷出来了!
方案 B:以管理员身份一劳永逸地安装
如果你希望以后每次都不用手动启动网关,那就给它管理员权限让它住进系统后台:
- 点击电脑左下角的 开始菜单,输入
cmd。 - 在搜索结果的“命令提示符”上,点击右侧的 “以管理员身份运行”(或者右键 -> 以管理员身份运行)。
- 在弹出的管理员窗口里,依次执行:
DOS
openclaw gateway install openclaw gateway - 确认没报错后,接着执行:
DOS
openclaw channels login --channel openclaw-weixin
建议先用方案 A 试试!网关跑起来之后,再去扫码,这次绝对没问题了。
你说等待连接结果...
Channel login failed: Error: Login failed: TypeError: fetch failed
Gemini 说
你已让系统停止这条回答
你说扫码后,失败了。机器人也不应答
Gemini 说
你已让系统停止这条回答
你说16:18:03 Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
16:18:04 [plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: feishu (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts), openclaw-weixin (C:\Users\Lenovo\.openclaw\extensions\openclaw-weixin\index.ts). Set plugins.allow to explicit trusted ids.
16:19:54 [plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes
16:19:54 [plugins] feishu_chat: Registered feishu_chat tool
16:19:54 [plugins] feishu_wiki: Registered feishu_wiki tool
16:19:54 [plugins] feishu_drive: Registered feishu_drive tool
16:19:54 [plugins] feishu_bitable: Registered bitable tools
16:20:20 Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
16:20:21 [gateway] [plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: feishu (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts), openclaw-weixin (C:\Users\Lenovo\.openclaw\extensions\openclaw-weixin\index.ts). Set plugins.allow to explicit trusted ids.
16:20:21 [gateway] feishu_doc: Registered feishu_doc, feishu_app_scopes
16:20:21 [gateway] feishu_chat: Registered feishu_chat tool
16:20:21 [gateway] feishu_wiki: Registered feishu_wiki tool
16:20:21 [gateway] feishu_drive: Registered feishu_drive tool
16:20:21 [gateway] feishu_bitable: Registered bitable tools
16:20:22 [gateway] [plugins] duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts) (plugin=feishu, source=C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
16:20:22 [canvas] host mounted at http://127.0.0.1:18790/__openclaw__/canvas/ (root C:\Users\Lenovo\.openclaw\canvas)
16:20:23 [heartbeat] started
16:20:23 [health-monitor] started (interval: 300s, startup-grace: 60s, channel-connect-grace: 120s)
16:20:23 [gateway] agent model: cherry-0d121414-c9b1-494f-a1ef-76d5494a3eb3/kimi-coding/k2p5
16:20:23 [gateway] listening on ws://127.0.0.1:18790, ws://[::1]:18790 (PID 18388)
16:20:23 [gateway] log file: \tmp\openclaw\openclaw-2026-03-22.log
16:20:23 [info]: [ 'client ready' ]
16:20:25 [browser/server] Browser control listening on http://127.0.0.1:18792/ (auth=token)
16:20:25 [feishu] starting feishu[default] (mode: websocket)
16:20:25 [delivery-recovery] Found 1 pending delivery entries — starting recovery
16:20:35 [feishu] feishu[default]: bot info probe timed out after 10000ms; continuing startup
16:20:35 [feishu] feishu[default]: bot open_id resolved: unknown
16:20:35 [feishu] feishu[default]: dedup warmup loaded 3 entries from disk
16:20:35 [info]: [ 'event-dispatch is ready' ]
16:20:35 [feishu] feishu[default]: starting WebSocket connection...
16:20:35 [info]: [
'[ws]',
'receive events or callbacks through persistent connection only available in self-build & Feishu app, Configured in:\n' +
' Developer Console(开发者后台) \n' +
' ->\n' +
' Events and Callbacks(事件与回调)\n' +
' -> \n' +
' Mode of event/callback subscription(订阅方式)\n' +
' -> \n' +
' Receive events/callbacks through persistent connection(使用 长连接 接收事件/回调)'
]
16:20:35 [feishu] feishu[default]: WebSocket client started
16:20:52 [error]: [ '[ws]', 'timeout of 15000ms exceeded' ]
16:20:52 [error]: [ '[ws]', 'connect failed' ]
16:20:52 [info]: [ '[ws]', 'reconnect' ]
16:20:52 [info]: [ '[ws]', 'ws client ready' ]
16:20:56 [error]: [
AxiosError: timeout of 10000ms exceeded
at RedirectableRequest.handleRequestTimeout (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\openclaw\node_modules\axios\lib\adapters\http.js:908:13)
at RedirectableRequest.emit (node:events:508:28)
at Timeout._onTimeout (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\openclaw\node_modules\follow-redirects\index.js:221:12)
at listOnTimeout (node:internal/timers:605:17)
at processTimers (node:internal/timers:541:7)
at Axios.request (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\openclaw\node_modules\axios\lib\core\Axios.js:46:41)
at processTicksAndRejections (node:internal/process/task_queues:104:5) {
isAxiosError: true,
code: 'ECONNABORTED',
config: {
transitional: [Object],
adapter: [Array],
transformRequest: [Array],
transformResponse: [Array],
timeout: 10000,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
env: [Object],
validateStatus: [Function: validateStatus],
headers: [Object [AxiosHeaders]],
method: 'get',
url: 'https://open.feishu.cn/open-apis/bot/v3/info',
params: {},
allowAbsoluteUrls: true,
data: undefined
},
request: Writable {
_events: [Object],
_writableState: [WritableState],
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 0,
_requestBodyBuffers: [],
_eventsCount: 3,
_onNativeResponse: [Function (anonymous)],
_currentRequest: [ClientRequest],
_currentUrl: 'https://open.feishu.cn/open-apis/bot/v3/info',
_timeout: null,
Symbol(shapeMode): true,
Symbol(kCapture): false
}
}
]
16:20:59 [error]: [
AxiosError: timeout of 10000ms exceeded
at RedirectableRequest.handleRequestTimeout (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\openclaw\node_modules\axios\lib\adapters\http.js:908:13)
at RedirectableRequest.emit (node:events:508:28)
at Timeout._onTimeout (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\openclaw\node_modules\follow-redirects\index.js:221:12)
at listOnTimeout (node:internal/timers:605:17)
at processTimers (node:internal/timers:541:7)
at Axios.request (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\openclaw\node_modules\axios\lib\core\Axios.js:46:41)
at processTicksAndRejections (node:internal/process/task_queues:104:5) {
isAxiosError: true,
code: 'ECONNABORTED',
config: {
transitional: [Object],
adapter: [Array],
transformRequest: [Array],
transformResponse: [Array],
timeout: 10000,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
env: [Object],
validateStatus: [Function: validateStatus],
headers: [Object [AxiosHeaders]],
method: 'get',
url: 'https://open.feishu.cn/open-apis/bot/v3/info',
params: {},
allowAbsoluteUrls: true,
data: undefined
},
request: Writable {
_events: [Object],
_writableState: [WritableState],
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 0,
_requestBodyBuffers: [],
_eventsCount: 3,
_onNativeResponse: [Function (anonymous)],
_currentRequest: [ClientRequest],
_currentUrl: 'https://open.feishu.cn/open-apis/bot/v3/info',
_timeout: null,
Symbol(shapeMode): true,
Symbol(kCapture): false
}
}
]
16:21:01 [error]: [
[
{
message: 'Request failed with status code 400',
config: [Object],
request: [Object],
response: [Object]
},
{
code: 230099,
msg: 'Failed to create card content, ext=ErrCode: 11310; ErrMsg: card table number over limit; ErrorValue: table; ',
error: [Object],
log_id: '20260322162101B1279872C71301CB5E41',
troubleshooter: '排查建议查看(Troubleshooting suggestions): https://open.feishu.cn/search?from=openapi&log_id=20260322162101B1279872C71301CB5E41&code=230099&method_id=6936075528891154460'
}
]
]
16:21:01 [delivery-recovery] Retry failed for delivery 38ff224d-0f2e-45c4-85cc-9ec6a5f7ce57: Request failed with status code 400
16:21:01 [delivery-recovery] Delivery recovery complete: 0 recovered, 1 failed, 0 skipped (max retries), 0 deferred (backoff)
16:21:09 [error]: [ '[ws]', 'timeout of 15000ms exceeded' ]
16:21:09 [info]: [ 'ws', 'unable to connect to the server after trying 1 times")' ]
显示思路
Gemini 说
太棒了!从这段日志可以看出一个绝好的消息:你的网关(Gateway)已经成功启动了! 你看这行代码:16:20:23 [gateway] listening on ws://127.0.0.1:18790,说明它已经在后台乖乖坐好,准备接客了。
为什么屏幕上会疯狂刷出一堆 Error 报错?
别慌,这些报错和微信完全没关系。 日志里的 AxiosError: timeout... 和 https://open.feishu.cn/... 显示,这是你之前安装的 飞书 (feishu) 插件在疯狂尝试连接飞书的服务器。但因为没有配置好代理,它卡在墙里出不去,一直在报错重连。
先不用管这些飞书的报错,让它在这个窗口里继续刷。
现在,我们去解决微信的 fetch failed
既然网关已经跑起来了,为什么你在另外一个窗口运行微信登录还会报 fetch failed 呢? 真相是:被代理软件“误伤”了。
我们在前几步为了下载插件,可能设置了全局代理。结果微信登录插件在尝试连接本地的网关(127.0.0.1)时,也被死板地绕到了代理服务器上,代理服务器不认识这个本地端口,直接给掐断了。
请按以下步骤操作:
1. 保持当前这个一直刷日志的网关窗口不要关。
2. 切换到你输入 login 命令的那个报错窗口。
3. 在那个窗口里,输入这行命令,告诉它“本地地址不要走代理”:
DOS
set NO_PROXY=localhost,127.0.0.14. 紧接着,再次输入微信登录命令:
DOS
openclaw channels login --channel openclaw-weixin这次,它应该能精准找到隔壁窗口的网关,顺利刷出微信的二维码了!快准备好手机扫码吧!
======
Microsoft Windows [版本 10.0.26200.8037]
(c) Microsoft Corporation。保留所有权利。
C:\Users\Lenovo>npx -y @tencent-weixin/openclaw-weixin-cli@latest install
[openclaw-weixin] 未找到 openclaw,请先安装:
npm install -g openclaw
详见 https://docs.openclaw.ai/install
C:\Users\Lenovo>npx -y @tencent-weixin/openclaw-weixin-cli@latest install
C:\Users\Lenovo>npm install -g @tencent-weixin/openclaw-weixin-cli
added 1 package in 6s
C:\Users\Lenovo>openclaw-weixin
'openclaw-weixin' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
C:\Users\Lenovo>openclaw -weixin
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
14:24:20 [plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: feishu (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts). Set plugins.allow to explicit trusted ids.
14:25:02 [plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes
14:25:02 [plugins] feishu_chat: Registered feishu_chat tool
14:25:02 [plugins] feishu_wiki: Registered feishu_wiki tool
14:25:02 [plugins] feishu_drive: Registered feishu_drive tool
14:25:03 [plugins] feishu_bitable: Registered bitable tools
error: unknown option '-weixin'
C:\Users\Lenovo>npm config get prefix
C:\Users\Lenovo\AppData\Roaming\npm
C:\Users\Lenovo>node "%AppData%\npm\node_modules\@tencent-weixin\openclaw-weixin-cli\bin\openclaw-weixin.js" install
node:internal/modules/cjs/loader:1459
throw err;
^
Error: Cannot find module 'C:\Users\Lenovo\AppData\Roaming\npm\node_modules\@tencent-weixin\openclaw-weixin-cli\bin\openclaw-weixin.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1456:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1066:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1071:22)
at Module._load (node:internal/modules/cjs/loader:1242:25)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
at node:internal/main/run_main_module:33:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v24.14.0
C:\Users\Lenovo>node "C:\Users\Lenovo\AppData\Roaming\npm\node_modules\@tencent-weixin\openclaw-weixin-cli\bin\openclaw-weixin.js" install
node:internal/modules/cjs/loader:1459
throw err;
^
Error: Cannot find module 'C:\Users\Lenovo\AppData\Roaming\npm\node_modules\@tencent-weixin\openclaw-weixin-cli\bin\openclaw-weixin.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1456:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1066:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1071:22)
at Module._load (node:internal/modules/cjs/loader:1242:25)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
at node:internal/main/run_main_module:33:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v24.14.0
C:\Users\Lenovo>weixin-installer install
[openclaw-weixin] 未找到 openclaw,请先安装:
npm install -g openclaw
详见 https://docs.openclaw.ai/install
C:\Users\Lenovo>"C:\Users\Sampson\AppData\Roaming\npm\weixin-installer.cmd" install
系统找不到指定的路径。
C:\Users\Lenovo>cd /d C:\Users\Sampson\AppData\Roaming\npm
系统找不到指定的路径。
C:\Users\Lenovo>cd .antigravity
C:\Users\Lenovo\.antigravity>cd ..
C:\Users\Lenovo>cd "AppData\Roaming\npm"
C:\Users\Lenovo\AppData\Roaming\npm>.\weixin-installer.cmd install --openclaw-path .\openclaw.cmd
[openclaw-weixin] 未找到 openclaw,请先安装:
npm install -g openclaw
详见 https://docs.openclaw.ai/install
C:\Users\Lenovo\AppData\Roaming\npm>set PATH=%cd%;%PATH%
C:\Users\Lenovo\AppData\Roaming\npm>weixin-installer install
[openclaw-weixin] 未找到 openclaw,请先安装:
npm install -g openclaw
详见 https://docs.openclaw.ai/install
C:\Users\Lenovo\AppData\Roaming\npm>node node_modules\@tencent-weixin\openclaw-weixin-cli\bin\openclaw-weixin.js install
node:internal/modules/cjs/loader:1459
throw err;
^
Error: Cannot find module 'C:\Users\Lenovo\AppData\Roaming\npm\node_modules\@tencent-weixin\openclaw-weixin-cli\bin\openclaw-weixin.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1456:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1066:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1071:22)
at Module._load (node:internal/modules/cjs/loader:1242:25)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
at node:internal/main/run_main_module:33:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v24.14.0
C:\Users\Lenovo\AppData\Roaming\npm>node node_modules\@tencent-weixin\openclaw-weixin-cli\bin\openclaw-weixin.js install --openclaw-bin .\openclaw.cmd
node:internal/modules/cjs/loader:1459
throw err;
^
Error: Cannot find module 'C:\Users\Lenovo\AppData\Roaming\npm\node_modules\@tencent-weixin\openclaw-weixin-cli\bin\openclaw-weixin.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1456:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1066:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1071:22)
at Module._load (node:internal/modules/cjs/loader:1242:25)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
at node:internal/main/run_main_module:33:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v24.14.0
C:\Users\Lenovo\AppData\Roaming\npm>dir node_modules\@tencent-weixin
驱动器 C 中的卷是 Windows
卷的序列号是 B4A6-4A14
C:\Users\Lenovo\AppData\Roaming\npm\node_modules\@tencent-weixin 的目录
2026-03-22 14:23 <DIR> .
2026-03-22 14:23 <DIR> ..
2026-03-22 14:23 <DIR> openclaw-weixin-cli
0 个文件 0 字节
3 个目录 77,772,988,416 可用字节
C:\Users\Lenovo\AppData\Roaming\npm># 这一步会自动找到正确的 JS 文件并运行 install
'#' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
C:\Users\Lenovo\AppData\Roaming\npm>npm explore @tencent-weixin/openclaw-weixin-cli --global -- npm run install
npm error Missing script: "install"
npm error
npm error Did you mean this?
npm error npm uninstall # Remove a package
npm error
npm error To see a list of scripts, run:
npm error npm run
npm error A complete log of this run can be found in: C:\Users\Lenovo\AppData\Local\npm-cache\_logs\2026-03-22T06_35_46_677Z-debug-0.log
npm error code 1
npm error path C:\Users\Lenovo\AppData\Roaming\npm\node_modules\@tencent-weixin\openclaw-weixin-cli
npm error command failed
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c npm run install
npm error A complete log of this run can be found in: C:\Users\Lenovo\AppData\Local\npm-cache\_logs\2026-03-22T06_35_45_019Z-debug-0.log
C:\Users\Lenovo\AppData\Roaming\npm># 先进入目录
'#' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
C:\Users\Lenovo\AppData\Roaming\npm>cd /d C:\Users\Lenovo\AppData\Roaming\npm
C:\Users\Lenovo\AppData\Roaming\npm>
C:\Users\Lenovo\AppData\Roaming\npm># 强行把当前目录下的 openclaw.cmd 复制一个叫 openclaw (不带后缀)
'#' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
C:\Users\Lenovo\AppData\Roaming\npm>copy openclaw.cmd openclaw
覆盖 openclaw 吗? (Yes/No/All):
覆盖 openclaw 吗? (Yes/No/All):
已复制 0 个文件。
C:\Users\Lenovo\AppData\Roaming\npm>set PATH=%cd%;%PATH% && weixin-installer install
[openclaw-weixin] 未找到 openclaw,请先安装:
npm install -g openclaw
详见 https://docs.openclaw.ai/install
C:\Users\Lenovo\AppData\Roaming\npm>copy openclaw.cmd openclaw
覆盖 openclaw 吗? (Yes/No/All): Y
已复制 1 个文件。
C:\Users\Lenovo\AppData\Roaming\npm>set PATH=%cd%;%PATH% && weixin-installer install
[openclaw-weixin] 未找到 openclaw,请先安装:
npm install -g openclaw
详见 https://docs.openclaw.ai/install
C:\Users\Lenovo\AppData\Roaming\npm>type weixin-installer.cmd
@ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL
CALL :find_dp0
IF EXIST "%dp0%\node.exe" (
SET "_prog=%dp0%\node.exe"
) ELSE (
SET "_prog=node"
SET PATHEXT=%PATHEXT:;.JS;=;%
)
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\node_modules\@tencent-weixin\openclaw-weixin-cli\cli.mjs" %*
C:\Users\Lenovo\AppData\Roaming\npm>notepad "node_modules\@tencent-weixin\openclaw-weixin-cli\cli.mjs"
C:\Users\Lenovo\AppData\Roaming\npm>weixin-installer install
[openclaw-weixin] 已找到本地安装的 openclaw
[openclaw-weixin] 正在安装插件...
[openclaw-weixin] [plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes
[plugins] feishu_chat: Registered feishu_chat tool
[plugins] feishu_wiki: Registered feishu_wiki tool
[plugins] feishu_drive: Registered feishu_drive tool
[plugins] feishu_bitable: Registered bitable tools
|
o Config warnings --------------------------------------------------------+
| |
| - plugins.entries.feishu: plugin feishu: duplicate plugin id detected; |
| later plugin may be overridden |
| (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts) |
| |
+--------------------------------------------------------------------------+
Downloading @tencent-weixin/openclaw-weixin…
[plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes
[plugins] feishu_chat: Registered feishu_chat tool
[plugins] feishu_wiki: Registered feishu_wiki tool
[plugins] feishu_drive: Registered feishu_drive tool
[plugins] feishu_bitable: Registered bitable tools
Extracting C:\Users\Lenovo\AppData\Local\Temp\openclaw-npm-pack-hHHf35\tencent-weixin-openclaw-weixin-1.0.2.tgz…
WARNING: Plugin "openclaw-weixin" contains dangerous code patterns: Environment variable access combined with network send — possible credential harvesting (C:\Users\Lenovo\AppData\Local\Temp\openclaw-plugin-b3yNoH\extract\package\src\messaging\process-message.ts:432)
Installing to C:\Users\Lenovo\.openclaw\extensions\openclaw-weixin…
Installing plugin dependencies…
[plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes
[plugins] feishu_chat: Registered feishu_chat tool
[plugins] feishu_wiki: Registered feishu_wiki tool
[plugins] feishu_drive: Registered feishu_drive tool
[plugins] feishu_bitable: Registered bitable tools
Installed plugin: openclaw-weixin
Restart the gateway to load plugins.
[openclaw-weixin] 插件就绪,开始首次连接...
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
OpenClaw 2026.3.13 (61d171a) — I don't sleep, I just enter low-power mode and dream of clean diffs.
|
o Config warnings -------------------------------------------------------------------------+
| |
| - plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may |
| be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts) |
| |
+-------------------------------------------------------------------------------------------+
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
14:48:56 [plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: feishu (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts), openclaw-weixin (C:\Users\Lenovo\.openclaw\extensions\openclaw-weixin\index.ts). Set plugins.allow to explicit trusted ids.
14:50:28 [plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes
14:50:28 [plugins] feishu_chat: Registered feishu_chat tool
14:50:28 [plugins] feishu_wiki: Registered feishu_wiki tool
14:50:28 [plugins] feishu_drive: Registered feishu_drive tool
14:50:28 [plugins] feishu_bitable: Registered bitable tools
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
正在启动微信扫码登录...
14:51:05 [plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: feishu (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts), openclaw-weixin (C:\Users\Lenovo\.openclaw\extensions\openclaw-weixin\index.ts). Set plugins.allow to explicit trusted ids.
14:51:06 [plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes
14:51:06 [plugins] feishu_chat: Registered feishu_chat tool
14:51:06 [plugins] feishu_wiki: Registered feishu_wiki tool
14:51:06 [plugins] feishu_drive: Registered feishu_drive tool
14:51:06 [plugins] feishu_bitable: Registered bitable tools
使用微信扫描以下二维码,以完成连接:
https://liteapp.weixin.qq.com/q/7GiQu1?qrcode=b1328fdbd61b802c433abe91cbb68d8f&bot_type=3 (二维码自动识别)
等待连接结果...
Channel login failed: Error: Login failed: TypeError: fetch failed
[openclaw-weixin] 首次连接未完成,可稍后手动重试:
openclaw channels login --channel openclaw-weixin
[openclaw-weixin] 正在重启 OpenClaw Gateway...
Microsoft Windows [版本 10.0.26200.8037]
(c) Microsoft Corporation。保留所有权利。
C:\Users\Lenovo>openclaw channels login --channel openclaw-weixin
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
OpenClaw 2026.3.13 (61d171a) — iMessage green bubble energy, but for everyone.
|
o Config warnings -------------------------------------------------------------------------+
| |
| - plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may |
| be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts) |
| |
+-------------------------------------------------------------------------------------------+
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
16:07:20 [plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: feishu (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts), openclaw-weixin (C:\Users\Lenovo\.openclaw\extensions\openclaw-weixin\index.ts). Set plugins.allow to explicit trusted ids.
16:08:56 [plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes
16:08:56 [plugins] feishu_chat: Registered feishu_chat tool
16:08:56 [plugins] feishu_wiki: Registered feishu_wiki tool
16:08:56 [plugins] feishu_drive: Registered feishu_drive tool
16:08:56 [plugins] feishu_bitable: Registered bitable tools
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
正在启动微信扫码登录...
16:09:19 [plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: feishu (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts), openclaw-weixin (C:\Users\Lenovo\.openclaw\extensions\openclaw-weixin\index.ts). Set plugins.allow to explicit trusted ids.
16:09:20 [plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes
16:09:20 [plugins] feishu_chat: Registered feishu_chat tool
16:09:20 [plugins] feishu_wiki: Registered feishu_wiki tool
16:09:20 [plugins] feishu_drive: Registered feishu_drive tool
16:09:20 [plugins] feishu_bitable: Registered bitable tools
使用微信扫描以下二维码,以完成连接:
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█ ▄▄▄▄▄ █ ██▀▀ ▄▄▄█ ▀▀▄▄▄ ▄█▄▀█ ▄▄▄▄▄ █
█ █ █ █ ▀█ ▀▄ ▄▄▄█ ▄ ▀▄█ █▀█ █ █ █
█ █▄▄▄█ █▀ █▄▀█▄ ▀█▀▄█ ▄▀▄▄▄▀█ █▄▄▄█ █
█▄▄▄▄▄▄▄█▄█ ▀▄█ ▀ ▀ ▀▄▀▄▀▄█ ▀ █▄▄▄▄▄▄▄█
█ ▄▀▀ ▄▄███▄█▄▀▄ ▄▄▄▄▄ ▀█▀▀ ██▄▀▄ ▄█
██ █▀▀▄▄▀▀▀█▀▄▀ ▄ ▀▀ ▀▄██▀▄█▄▄ █ ▀▄▀█
█▄▀ █▄▄ █▀▀▄▀▄ ▀ ▄▄▄▀▄▄▀▀ █ █ ▄▄▀▀ ▀▄█
██▄▀▀█ ▄█▄▀▄ ▄ ▄▄█ ▄█ ▀▀ ██▀ █ ▄ ▄▀▀▀██
█▀█▄ ▀▄▄▀▄ █▄ ▀▄ ▄▄▄▀▄▀▀▀▀█ ▀▄▄█▀▀ ▀▄█
█ ▀▀ ▄▀▄▄▀ ▄█▀█▀ ▄ █▀ ▀ █ ▄█▄▄▀ █▀▀██
█ ▀▀ █ ▄█ ▄▄▄▀▄▄▀ ▄▄▄▀▄▀ ▀▀▄ ▀▄▄ ▀▀ ▄█
█▀▄█▀▄ ▄▀ ▄▄ ▄ ▄▄█▀██▄▀▀ █▀▄▀▀ ██▄ ▀██
█▀ █▀██▄▄▄█ █▄ ▀ ▀▄▄▄▀▄▄▀▄█▄▀▀█▄█▀█ ▄█
███ ▄██▄ ▀▀ █▀█▀▄ ▀▀ █ ▀▄ ▄▄▀ ███ ▀██
█▄▄▄█▄▄▄▄ ▄▀▄▀▄▄▀▀▄▀▄▄▄▀▀▄▀█▄ ▄▄▄ ▄███
█ ▄▄▄▄▄ █▀▄▀ ▄ ▄▄▄▀▄▀▀▀▄▄ █▀▀ █▄█ ▄ ███
█ █ █ █▄▀▄█▄ ▀▀█▄▄▄▀▄▀ ▄▀█▀▄ ▄▄▀▄▀▀█
█ █▄▄▄█ █▀ ▀█▀█▀ ▄ █▄ ▀▄▄▄█▄▄▀▄ ██ ▀██
█▄▄▄▄▄▄▄█▄▄█▄█▄▄██▄█▄▄▄▄█▄██▄█▄▄▄▄█▄▄▄█
等待连接结果...
⏳ 二维码已过期,正在刷新...(2/3)
新二维码已生成,请重新扫描
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█ ▄▄▄▄▄ █▄▄▄ ▀ ▄██▄█▀▄███ ▄██ █ ▄▄▄▄▄ █
█ █ █ ██▄▀ █ ▄▄▀██▀ ▀██▄▄▀▀█ █ █ █
█ █▄▄▄█ ██▀▄ ▄▄▀█▄ ▄▄▀█ ▀▄▀ ███ █▄▄▄█ █
█▄▄▄▄▄▄▄█ ▀▄█ ▀▄█▄█▄▀ █▄█▄▀▄█▄█▄▄▄▄▄▄▄█
█▄ █ ▄▀▄█▀▄▀█▄██▀█▄▀ █▀▀▀▀ ██▄▀▀██▀▄█
██ ██▄ ▄ █▄██▄▄ ▄█▀▄█ ▄█ ▄█ ▄▄▀ ▄▄ ▄▄█
█▀██ ██▄▄ █▀▄ ▀█▄▄▄█ ▀ █▀▄▀▄▄▀ ▀ ▄█
██▄ █▀▄█▀█▀█▀▀ ██▄ █▄▄██▄█▄██▀▀ █▀▄ █
█ ▀█▀█▀▄▀▄▀ ▄███▄▀▄▀ ██▄▀▄▀▀█▀▄ █ ▄▄▄█
███▀█▀▄▄█ ▄█▀▄ ▄▄ ▄▄▄█▄ ▄█ █ ▀ ▀▄█▀██ █
█▄▄▄█▀▀▄▀▀▄█▄▀ █ █▄▀ █▄ ▀██▀▄▄▄▄ █ ▄█
█ ▄█ ▄ █▄▀ ▀ █ ▄ ▀██▄ ██ ▀██▄ ▀▀ █
█▀▄▀▀ ▀▄█▀▀ ▄▄ ▀▀ █▄█▀██ ▄█▄ ▄▄█▀▄▀▀▄█
█ ▄▄ ▀▀▄▀▄ ▄▄█ █▄▄ ▄▄█▄█▄ ▄▄█▄▀▀ ▄ █
█▄██▄██▄█ █ ▀▀▀ █▀▄▀ █ ▄▄▄▀█ ▄▄▄ ▀ ██
█ ▄▄▄▄▄ ███ ▄▀█▀ █▀ ▀▄▀ █ ▄█ █▄█ ▄▀ █
█ █ █ █ █ █▄▄ ▄▄ ▀▄ ▄█▄ ▄ ▀▀▀█
█ █▄▄▄█ █▀▄▀█▄█ ▄ ▀█▄▀▄▀▄▄ █▀▀ ▄▀▀▀ █
█▄▄▄▄▄▄▄█▄████▄▄▄██▄▄▄██▄▄███▄█▄▄▄▄██▄█
⏳ 二维码已过期,正在刷新...(3/3)
新二维码已生成,请重新扫描
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█ ▄▄▄▄▄ █ ██▀▀ ▄▄▄▀▄▀██ ▄▄▄█▄▀█ ▄▄▄▄▄ █
█ █ █ █ ▀█ ▀▄ ▄▄██▀▄ ▀ █ █▀█ █ █ █
█ █▄▄▄█ █▀ █▄▀█▄ ▄▀▀▄▀ ▄ ▄▄▄▀█ █▄▄▄█ █
█▄▄▄▄▄▄▄█▄█ ▀▄█ ▀ ▀ ▀▄▀ █ █ ▀ █▄▄▄▄▄▄▄█
█ ██▄ ▄▀█▀▄█▄▀▄ ▄▄▄▄▄▀▀▀█▀▀ ██▄▀▄ ▄█
██ ▀█▄█▄▄ ▄▄█▀▄▀ ▄ ▄█▄▀ ▄█▀▄█▄▄ █ ▀▄▀█
█▄▀██▄▄▄ ▄▄ ▄▀▄ ▀ ▄▄▄▀▄▀ ▀ █ █ ▄▄▀▀ ▀▄█
█▀▀ █▄▄ ▀▀▀ ▄ ▄▄█ █▀ █▄ █▀ █ ▄ ▄▀▀▀██
█ ▄▄ ▄▄▄▀▀ ▀█▄ ▀▄ ▄▀▄▄▄▄▀▀▀█ ▀▄▄█▀▀ ▀▄█
██▀█▀▄ ▄▀▄▄▀█▀█▀ ▄ ▀█▄ ▄ █ ▄█▄▄▀ █▀▀██
█▄▀ ▀█▄▄█▀▀▄▀▄▄▀ ▄▄█▀▄▀ ▀▀▄ ▀▄▄ ▀▀ ▄█
█ █▄█▀▀▄▄▄▀▀ ▄ ▄▄█▀▀▀█ █▀▄▀▀ ██▄ ▀██
█ ▀▀▄▄▄ █▄██▄ ▀ ▀ ▄▄▄▄▀▀▄█▄▀▀█▄█▀█ ▄█
███▄▀▄▀▄▀█▀▄█▀█▀▄ █▀▀▀█ ▀▄ ▄▄▀ ███ ▀██
█▄▄▄█▄█▄█ █▀▄▀▄▄▀▀▄▀▄▄▄▄▀▄▀█▄ ▄▄▄ ▄███
█ ▄▄▄▄▄ █▀█▀ ▄ ▄▄▄ █▄▀▀▄ █▀▀ █▄█ ▄ ███
█ █ █ █▄ ██▄ ▀▀█▄▄▄▀▄▄ ▄▀█▀▄ ▄▄▀▄▀▀█
█ █▄▄▄█ █▀▀██▀█▀ ▀ ▄█▀ █▄▄▄█▄▄▀▄ ██ ▀██
█▄▄▄▄▄▄▄█▄█▄▄█▄▄██▄█▄▄▄▄█▄██▄█▄▄▄▄█▄▄▄█
Channel login failed: Error: Login failed: TypeError: fetch failed
C:\Users\Lenovo>openclaw channels login --channel openclaw-weixin
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
OpenClaw 2026.3.13 (61d171a) — Automation with claws: minimal fuss, maximal pinch.
|
o Config warnings -------------------------------------------------------------------------+
| |
| - plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may |
| be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts) |
| |
+-------------------------------------------------------------------------------------------+
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
16:16:20 [plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: feishu (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts), openclaw-weixin (C:\Users\Lenovo\.openclaw\extensions\openclaw-weixin\index.ts). Set plugins.allow to explicit trusted ids.
16:16:47 [plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes
16:16:47 [plugins] feishu_chat: Registered feishu_chat tool
16:16:47 [plugins] feishu_wiki: Registered feishu_wiki tool
16:16:47 [plugins] feishu_drive: Registered feishu_drive tool
16:16:47 [plugins] feishu_bitable: Registered bitable tools
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
正在启动微信扫码登录...
16:16:55 [plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: feishu (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts), openclaw-weixin (C:\Users\Lenovo\.openclaw\extensions\openclaw-weixin\index.ts). Set plugins.allow to explicit trusted ids.
16:16:55 [plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes
16:16:55 [plugins] feishu_chat: Registered feishu_chat tool
16:16:55 [plugins] feishu_wiki: Registered feishu_wiki tool
16:16:55 [plugins] feishu_drive: Registered feishu_drive tool
16:16:55 [plugins] feishu_bitable: Registered bitable tools
Failed to start login: TypeError: fetch failed
Channel login failed: Error: Failed to start login: TypeError: fetch failed
C:\Users\Lenovo>openclaw channels login --channel openclaw-weixin
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
OpenClaw 2026.3.13 (61d171a) — One CLI to rule them all, and one more restart because you changed the port.
|
o Config warnings -------------------------------------------------------------------------+
| |
| - plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may |
| be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts) |
| |
+-------------------------------------------------------------------------------------------+
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
16:18:07 [plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: feishu (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts), openclaw-weixin (C:\Users\Lenovo\.openclaw\extensions\openclaw-weixin\index.ts). Set plugins.allow to explicit trusted ids.
16:19:53 [plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes
16:19:53 [plugins] feishu_chat: Registered feishu_chat tool
16:19:53 [plugins] feishu_wiki: Registered feishu_wiki tool
16:19:53 [plugins] feishu_drive: Registered feishu_drive tool
16:19:53 [plugins] feishu_bitable: Registered bitable tools
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
正在启动微信扫码登录...
16:20:13 [plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: feishu (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts), openclaw-weixin (C:\Users\Lenovo\.openclaw\extensions\openclaw-weixin\index.ts). Set plugins.allow to explicit trusted ids.
16:20:13 [plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes
16:20:13 [plugins] feishu_chat: Registered feishu_chat tool
16:20:13 [plugins] feishu_wiki: Registered feishu_wiki tool
16:20:14 [plugins] feishu_drive: Registered feishu_drive tool
16:20:14 [plugins] feishu_bitable: Registered bitable tools
使用微信扫描以下二维码,以完成连接:
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█ ▄▄▄▄▄ █ ██▀▀ ▄▄▄▀▀▀▄█▀▄▀▄█▄▀█ ▄▄▄▄▄ █
█ █ █ █ ▀█ ▀▄ ▄▄ ▄█▄▄▀██ █▀█ █ █ █
█ █▄▄▄█ █▀ █▄▀█▄ █▄▀▀▀█▄▀▄▄▄▀█ █▄▄▄█ █
█▄▄▄▄▄▄▄█▄█ ▀▄█ ▀ ▀ █▄▀▄█▄█ ▀ █▄▄▄▄▄▄▄█
█ ▀▀ ▄██▀▄█▄▀▄ ▄▄▄▀▄▄▀▀█▀▀ ██▄▀▄ ▄█
█▀██▀▀▀▄▄▀▀ █▀▄▀ ▄▀▄▀█▀▀▄▄█▀▄█▄▄ █ ▀▄▀█
█▄▄█▄▀▀▄█▀▀▀▄▀▄ ▀ ▄▄▄▀▄▄▀▀ █ █ ▄▄▀▀ ▀▄█
███▀█▄█▄▄▄ ▀ ▄ ▄▄█ █▀▀▀ ▄█▀ █ ▄ ▄▀▀▀██
█▀▀▄▄▀█▄▀ ▀▄█▄ ▀▄ ▄▄▄▀ ▀▀▀▀█ ▀▄▄█▀▀ ▀▄█
█▄██▀ ▄▄██ █▀█▀ ▄▀▄█ ▄ █ ▄█▄▄▀ █▀▀██
█▄ █▀ ▄█▄▄█▄▀▄▄▀ ▄▀▄▄▄▀ ▀▀▄ ▀▄▄ ▀▀ ▄█
█▄ ▀██▄▄ ▄█ ▄ ▄▄█ ▀▀▀ █▀▄▀▀ ██▄ ▀██
█ ▄██▀▄█▄▀ █▄ ▀ ▀▄▄▄▀▄▄▀▄█▄▀▀█▄█▀█ ▄█
███▄█▀▄▄█▄▀██▀█▀▄ ▄█▀▀▄ ▀▄ ▄▄▀ ███ ▀██
█▄▄██▄█▄█ ▀ ▄▀▄▄▀▀▄▄▄▀▄▀▀▄▀█▄ ▄▄▄ ▄███
█ ▄▄▄▄▄ █▀█▀ ▄ ▄▄▄▀ █▄▀▀▄ █▀▀ █▄█ ▄ ███
█ █ █ █▄█▄█▄ ▀▀█▄▄▄▄▄▀ ▄▀█▀▄ ▄▄▀▄▀▀█
█ █▄▄▄█ █▀█▄█▀█▀ █▀██ ▀▄▄▄▄█▄▄▀▄ ██ ▀██
█▄▄▄▄▄▄▄█▄██▄█▄▄██▄█▄█▄██▄██▄█▄▄▄▄█▄▄▄█
等待连接结果...
Channel login failed: Error: Login failed: TypeError: fetch failed
C:\Users\Lenovo>openclaw channels login --channel openclaw-weixin
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
OpenClaw 2026.3.13 (61d171a) — I'm the middleware between your ambition and your attention span.
|
o Config warnings -------------------------------------------------------------------------+
| |
| - plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may |
| be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts) |
| |
+-------------------------------------------------------------------------------------------+
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
16:27:33 [plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: feishu (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts), openclaw-weixin (C:\Users\Lenovo\.openclaw\extensions\openclaw-weixin\index.ts). Set plugins.allow to explicit trusted ids.
16:28:19 [plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes
16:28:19 [plugins] feishu_chat: Registered feishu_chat tool
16:28:19 [plugins] feishu_wiki: Registered feishu_wiki tool
16:28:19 [plugins] feishu_drive: Registered feishu_drive tool
16:28:19 [plugins] feishu_bitable: Registered bitable tools
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts)
正在启动微信扫码登录...
16:28:27 [plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: feishu (C:\Users\Lenovo\.openclaw\extensions\feishu\index.ts), openclaw-weixin (C:\Users\Lenovo\.openclaw\extensions\openclaw-weixin\index.ts). Set plugins.allow to explicit trusted ids.
16:28:27 [plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes
16:28:27 [plugins] feishu_chat: Registered feishu_chat tool
16:28:27 [plugins] feishu_wiki: Registered feishu_wiki tool
16:28:27 [plugins] feishu_drive: Registered feishu_drive tool
16:28:27 [plugins] feishu_bitable: Registered bitable tools
使用微信扫描以下二维码,以完成连接:
等待连接结果...
✅ 与微信连接成功!
C:\Users\Lenovo>
更多推荐




所有评论(0)