Docker 默认使用国外官方源,下载镜像时速度较慢,甚至出现超时失败。本教程适配 Windows、macOS、Linux 三大系统,教你更换国内优质镜像源,解决下载慢问题,同时附上源的优先级、测试方法及常见问题排查。
本文整理 Windows/macOS 安装 Node.js、配置 npm 国内镜像、使用 cnpm 及常见问题解决方案,用于提升包下载速度。
bashnode -v npm -v
执行 openclaw devices list 或其他 CLI 命令时,报错:
gateway connect failed: GatewayClientRequestError: unauthorized: gateway token mismatch (set gateway.remote.token to match gateway.auth.token)
同时网关日志显示 reason=token_mismatch。
服务器厂商限制 8080 端口不可对外暴露,需实现:
38080 端口访问服务8080 端口