1.查看openclaw日志

# 日期改成今天
Get-Content "$env:TEMP\openclaw\openclaw-2026-03-04.log" -Tail 20

日志内容:

{"0":"\u001b[38;2;139;127;119mRuntime:\u001b[39m \u001b[38;2;139;127;119munknown\u001b[39m","_meta":{"runtime":"node","runtimeVersion":"24.13.0","hostname":"DESKTOP-DN5UI5T","name":"openclaw","date":"2026-03-04T02:42:55.637Z","logLevelId":3,"logLevelName":"INFO","path":{"fullFilePath":"file:///C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:258:46","fileName":"subsystem-kl-vrkYi.js","fileNameWithLine":"subsystem-kl-vrkYi.js:258","fileColumn":"46","fileLine":"258","filePath":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js","filePathWithLine":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:258","method":"console.log"}},"time":"2026-03-04T10:42:55.637+08:00"}
{"0":"\u001b[38;2;139;127;119mRPC probe:\u001b[39m \u001b[38;2;226;61;45mfailed\u001b[39m","_meta":{"runtime":"node","runtimeVersion":"24.13.0","hostname":"DESKTOP-DN5UI5T","name":"openclaw","date":"2026-03-04T02:42:55.637Z","logLevelId":5,"logLevelName":"ERROR","path":{"fullFilePath":"file:///C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:260:68","fileName":"subsystem-kl-vrkYi.js","fileNameWithLine":"subsystem-kl-vrkYi.js:260","fileColumn":"68","fileLine":"260","filePath":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js","filePathWithLine":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:260","method":"console.error"}},"time":"2026-03-04T10:42:55.637+08:00"}
{"0":"\u001b[38;2;139;127;119mRPC target:\u001b[39m ws://127.0.0.1:18789","_meta":{"runtime":"node","runtimeVersion":"24.13.0","hostname":"DESKTOP-DN5UI5T","name":"openclaw","date":"2026-03-04T02:42:55.638Z","logLevelId":5,"logLevelName":"ERROR","path":{"fullFilePath":"file:///C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:260:68","fileName":"subsystem-kl-vrkYi.js","fileNameWithLine":"subsystem-kl-vrkYi.js:260","fileColumn":"68","fileLine":"260","filePath":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js","filePathWithLine":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:260","method":"console.error"}},"time":"2026-03-04T10:42:55.638+08:00"}
{"0":"  \u001b[38;2;226;61;45mgateway closed (1006 abnormal closure (no close frame)): no close reason\u001b[39m","_meta":{"runtime":"node","runtimeVersion":"24.13.0","hostname":"DESKTOP-DN5UI5T","name":"openclaw","date":"2026-03-04T02:42:55.639Z","logLevelId":5,"logLevelName":"ERROR","path":{"fullFilePath":"file:///C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:260:68","fileName":"subsystem-kl-vrkYi.js","fileNameWithLine":"subsystem-kl-vrkYi.js:260","fileColumn":"68","fileLine":"260","filePath":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js","filePathWithLine":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:260","method":"console.error"}},"time":"2026-03-04T10:42:55.639+08:00"}{"0":"  \u001b[38;2;226;61;45mGateway target: ws://127.0.0.1:18789\u001b[39m","_meta":{"runtime":"node","runtimeVersion":"24.13.0","hostname":"DESKTOP-DN5UI5T","name":"openclaw","date":"2026-03-04T02:42:55.639Z","logLevelId":5,"logLevelName":"ERROR","path":{"fullFilePath":"file:///C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:260:68","fileName":"subsystem-kl-vrkYi.js","fileNameWithLine":"subsystem-kl-vrkYi.js:260","fileColumn":"68","fileLine":"260","filePath":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js","filePathWithLine":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:260","method":"console.error"}},"time":"2026-03-04T10:42:55.639+08:00"}
{"0":"  \u001b[38;2;226;61;45mSource: cli --url\u001b[39m","_meta":{"runtime":"node","runtimeVersion":"24.13.0","hostname":"DESKTOP-DN5UI5T","name":"openclaw","date":"2026-03-04T02:42:55.640Z","logLevelId":5,"logLevelName":"ERROR","path":{"fullFilePath":"file:///C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:260:68","fileName":"subsystem-kl-vrkYi.js","fileNameWithLine":"subsystem-kl-vrkYi.js:260","fileColumn":"68","fileLine":"260","filePath":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js","filePathWithLine":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:260","method":"console.error"}},"time":"2026-03-04T10:42:55.640+08:00"}
{"0":"  \u001b[38;2;226;61;45mConfig: C:\\Users\\鍙舵櫒\\.openclaw\\openclaw.json\u001b[39m","_meta":{"runtime":"node","runtimeVersion":"24.13.0","hostname":"DESKTOP-DN5UI5T","name":"openclaw","date":"2026-03-04T02:42:55.641Z","logLevelId":5,"logLevelName":"ERROR","path":{"fullFilePath":"file:///C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:260:68","fileName":"subsystem-kl-vrkYi.js","fileNameWithLine":"subsystem-kl-vrkYi.js:260","fileColumn":"68","fileLine":"260","filePath":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js","filePathWithLine":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:260","method":"console.error"}},"time":"2026-03-04T10:42:55.641+08:00"}
{"0":"","_meta":{"runtime":"node","runtimeVersion":"24.13.0","hostname":"DESKTOP-DN5UI5T","name":"openclaw","date":"2026-03-04T02:42:55.641Z","logLevelId":3,"logLevelName":"INFO","path":{"fullFilePath":"file:///C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:258:46","fileName":"subsystem-kl-vrkYi.js","fileNameWithLine":"subsystem-kl-vrkYi.js:258","fileColumn":"46","fileLine":"258","filePath":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js","filePathWithLine":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:258","method":"console.log"}},"time":"2026-03-04T10:42:55.641+08:00"}
{"0":"\u001b[38;2;139;127;119mTroubles:\u001b[39m run openclaw status","_meta":{"runtime":"node","runtimeVersion":"24.13.0","hostname":"DESKTOP-DN5UI5T","name":"openclaw","date":"2026-03-04T02:42:55.642Z","logLevelId":3,"logLevelName":"INFO","path":{"fullFilePath":"file:///C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:258:46","fileName":"subsystem-kl-vrkYi.js","fileNameWithLine":"subsystem-kl-vrkYi.js:258","fileColumn":"46","fileLine":"258","filePath":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js","filePathWithLine":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:258","method":"console.log"}},"time":"2026-03-04T10:42:55.642+08:00"}
{"0":"\u001b[38;2;139;127;119mTroubleshooting:\u001b[39m https://docs.openclaw.ai/troubleshooting","_meta":{"runtime":"node","runtimeVersion":"24.13.0","hostname":"DESKTOP-DN5UI5T","name":"openclaw","date":"2026-03-04T02:42:55.643Z","logLevelId":3,"logLevelName":"INFO","path":{"fullFilePath":"file:///C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:258:46","fileName":"subsystem-kl-vrkYi.js","fileNameWithLine":"subsystem-kl-vrkYi.js:258","fileColumn":"46","fileLine":"258","filePath":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js","filePathWithLine":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:258","method":"console.log"}},"time":"2026-03-04T10:42:55.643+08:00"}
{"0":"Dashboard URL: http://127.0.0.1:18789/#token=8ed15c38058153803504ec7ca11203d349ecc3e956a1a61f","_meta":{"runtime":"node","runtimeVersion":"24.13.0","hostname":"DESKTOP-DN5UI5T","name":"openclaw","date":"2026-03-04T02:43:23.692Z","logLevelId":3,"logLevelName":"INFO","path":{"fullFilePath":"file:///C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:258:46","fileName":"subsystem-kl-vrkYi.js","fileNameWithLine":"subsystem-kl-vrkYi.js:258","fileColumn":"46","fileLine":"258","filePath":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js","filePathWithLine":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:258","method":"console.log"}},"time":"2026-03-04T10:43:23.693+08:00"}
{"0":"Copied to clipboard.","_meta":{"runtime":"node","runtimeVersion":"24.13.0","hostname":"DESKTOP-DN5UI5T","name":"openclaw","date":"2026-03-04T02:43:23.749Z","logLevelId":3,"logLevelName":"INFO","path":{"fullFilePath":"file:///C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:258:46","fileName":"subsystem-kl-vrkYi.js","fileNameWithLine":"subsystem-kl-vrkYi.js:258","fileColumn":"46","fileLine":"258","filePath":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js","filePathWithLine":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:258","method":"console.log"}},"time":"2026-03-04T10:43:23.750+08:00"}
{"0":"Opened in your browser. Keep that tab to control OpenClaw.","_meta":{"runtime":"node","runtimeVersion":"24.13.0","hostname":"DESKTOP-DN5UI5T","name":"openclaw","date":"2026-03-04T02:43:23.858Z","logLevelId":3,"logLevelName":"INFO","path":{"fullFilePath":"file:///C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:258:46","fileName":"subsystem-kl-vrkYi.js","fileNameWithLine":"subsystem-kl-vrkYi.js:258","fileColumn":"46","fileLine":"258","filePath":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js","filePathWithLine":"/C:/Users/%E5%8F%B6%E6%99%A8/AppData/Roaming/npm/node_modules/openclaw/dist/subsystem-kl-vrkYi.js:258","method":"console.log"}},"time":"2026-03-04T10:43:23.858+08:00"}

发现是因为路径含中文,编译时乱码导致启动失败。

C:\\Users\\鍙舵櫒\\.openclaw\\

解决办法:

        1. 不要用中文用户名

        2. 用单独命令行启动:

node "C:\Users\叶晨\AppData\Roaming\npm\node_modules\openclaw\dist\index.js" gateway --port 18789

Logo

Agent 垂直技术社区,欢迎活跃、内容共建。

更多推荐