总结
需要先安装c++编译环境。这个没有一个很友好的提示。
工具 :https://github.com/miaoxworld/openclaw-manager
打开dashboard时 未授权:缺少网关令牌(打开仪表盘 URL 并粘贴到控制界面设置中令牌)【openclaw启动后,重新打开openclaw Manager再点dashboard就正常了。】
unauthorized: gateway token mismatch (open the dashboard URL and paste the token in Control UI settings)
用命令openclaw dashboard找到token
安装openclaw时,找不到模块。(需要外网才能下载)
OpenClaw 依赖的 node-llama-cpp 本地AI推理库 与你的系统不兼容。()
npm 在安装过程中 崩溃了,导致文件没安装完整
npm error path …node_modules\node-llama-cpp
npm error command failed
[node-llama-cpp] The prebuilt binary … not compatible with the current system
解决:
安装 Windows 编译环境
安装:
Visual Studio Build Tools
下载:
https://visualstudio.microsoft.com/visual-cpp-build-tools/
安装时勾选:
Desktop development with C++
否则 node-llama-cpp 编译不了。
或者自动安装所必需的c++环境
wingetinstall--idMicrosoft.VisualStudio.2022.BuildTools--force--override"--add Microsoft.VisualStudio.Component.VC.CMake.Project Microsoft.VisualStudio.Component.VC.CoreBuildTools Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.ATL Microsoft.VisualStudio.Component.VC.ATLMFC Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset Microsoft.VisualStudio.Component.VC.Llvm.Clang Microsoft.VisualStudio.Component.VC.Redist.14.Latest Microsoft.Component.VC.Runtime.UCRTSDK Microsoft.VisualStudio.Component.Windows10SDK Microsoft.VisualStudio.Component.Windows10SDK.20348"或者直接从别的电脑复制过去。C:\Users\YourPC\AppData\Roaming\npm\node_modules
========================================OpenClaw 安装向导========================================正在安装 OpenClaw...npmwarn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead npm warn deprecated glob@10.5.0: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me npm warn cleanup Failed to remove some directories [ npm warn cleanup [ npm warn cleanup '\\\\?\\C:\\Users\\chenhao\\AppData\\Roaming\\npm\\node_modules\\openclaw\\node_modules\\@mariozechner\\pi-coding-agent', npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\chenhao\AppData\Roaming\npm\node_modules\openclaw\node_modules\@mariozechner\pi-coding-agent'] { npm warn cleanup errno: -4048, npm warn cleanup code: 'EPERM', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\\Users\\chenhao\\AppData\\Roaming\\npm\\node_modules\\openclaw\\node_modules\\@mariozechner\\pi-coding-agent' npm warn cleanup } npm warn cleanup ], npm warn cleanup [ npm warn cleanup '\\\\?\\C:\\Users\\chenhao\\AppData\\Roaming\\npm\\node_modules\\openclaw\\node_modules\\@line', npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\chenhao\AppData\Roaming\npm\node_modules\openclaw\node_modules\@line'] { npm warn cleanup errno: -4048, npm warn cleanup code: 'EPERM', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\\Users\\chenhao\\AppData\\Roaming\\npm\\node_modules\\openclaw\\node_modules\\@line' npm warn cleanup } npm warn cleanup ], npm warn cleanup [ npm warn cleanup '\\\\?\\C:\\Users\\chenhao\\AppData\\Roaming\\npm\\node_modules\\openclaw\\node_modules', npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\chenhao\AppData\Roaming\npm\node_modules\openclaw\node_modules\@buape\carbon\node_modules\discord-api-types\payloads\v9'] { npm warn cleanup errno: -4048, npm warn cleanup code: 'EPERM', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\\Users\\chenhao\\AppData\\Roaming\\npm\\node_modules\\openclaw\\node_modules\\@buape\\carbon\\node_modules\\discord-api-types\\payloads\\v9' npm warn cleanup } npm warn cleanup ], npm warn cleanup [ npm warn cleanup '\\\\?\\C:\\Users\\chenhao\\AppData\\Roaming\\npm\\node_modules\\openclaw', npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\chenhao\AppData\Roaming\npm\node_modules\openclaw\extensions\memory-lancedb\node_modules\.ignored\openai\resources'] { npm warn cleanup errno: -4048, npm warn cleanup code: 'EPERM', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\\Users\\chenhao\\AppData\\Roaming\\npm\\node_modules\\openclaw\\extensions\\memory-lancedb\\node_modules\\.ignored\\openai\\resources' npm warn cleanup } npm warn cleanup ], npm warn cleanup [ npm warn cleanup 'C:\\Users\\chenhao\\AppData\\Roaming\\npm\\node_modules\\openclaw', npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\chenhao\AppData\Roaming\npm\node_modules\openclaw\extensions\memory-lancedb\node_modules\.ignored\openai\src\resources\beta'] { npm warn cleanup errno: -4048, npm warn cleanup code: 'EPERM', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\\Users\\chenhao\\AppData\\Roaming\\npm\\node_modules\\openclaw\\extensions\\memory-lancedb\\node_modules\\.ignored\\openai\\src\\resources\\beta' npm warn cleanup } npm warn cleanup ] npm warn cleanup ] npm error code 3221225477 npm error path C:\Users\chenhao\AppData\Roaming\npm\node_modules\openclaw\node_modules\node-llama-cpp npm error command failed npm error command C:\WINDOWS\system32\cmd.exe /d /s /c node ./dist/cli/cli.js postinstall npm error [node-llama-cpp] The prebuilt binary for platform "win" "x64" with Vulkan support is not compatible with the current system, falling back to using no GPU npm error A complete log of this run can be found in: C:\Users\chenhao\AppData\Local\npm-cache\_logs\2026-03-12T05_12_57_094Z-debug-0.log 初始化配置... node:internal/modules/cjs/loader:1459 throw err; ^ Error: Cannot find module 'C:\Users\chenhao\AppData\Roaming\npm\node_modules\openclaw\openclaw.mjs' 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 安装完成! node:internal/modules/cjs/loader:1459 throw err; ^ Error: Cannot find module 'C:\Users\chenhao\AppData\Roaming\npm\node_modules\openclaw\openclaw.mjs' 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 按回车键关闭此窗口: