尝试找到国内最快捷、方便、稳定的安装OpenClaw的方法

📅 发布时间:2026/7/12 6:53:41 👁️ 浏览次数:
尝试找到国内最快捷、方便、稳定的安装OpenClaw的方法
小龙虾OpenClaw ,repo:https://github.com/openclaw/openclaw国内镜像https://gitcode.com/GitHub_Trending/cl/openclaw方法4最快但是不知道效果怎样。1官网安装官网这样写的git clone https://github.com/openclaw/openclaw.git cd openclaw pnpm install pnpm ui:build # auto-installs UI deps on first run pnpm build pnpm openclaw onboard --install-daemon # Dev loop (auto-reload on TS changes) pnpm gateway:watch2国内安装国内可以这样把github换成gitcodegit clone https://gitcode.com/GitHub_Trending/cl/openclaw cd openclaw pnpm install pnpm ui:build # auto-installs UI deps on first run pnpm build pnpm openclaw onboard --install-daemon # Dev loop (auto-reload on TS changes) pnpm gateway:watch但是因为有些库还是会去github下载所以还是容易有报错3用国内镜像安装curl -fsSL https://clawd.bot/install.sh | bash4直接openclaw-cn安装pnpm install -g openclaw-cn --registryhttps://registry.npmmirror.com # 初始化配置自动生成国内适配的配置文件 openclaw-cn onboard --install-daemon这个安装非常快pnpm install -g openclaw-cn --registryhttps://registry.npmmirror.com Downloading openclaw-cn0.1.7: 14.02 MB/14.02 MB, done Downloading node-llama-cpp/linux-x64-vulkan3.15.0: 26.29 MB/26.29 MB, done Downloading node-llama-cpp/linux-x643.15.0: 9.68 MB/9.68 MB, done Downloading node-llama-cpp3.15.0: 28.03 MB/28.03 MB, done WARN 11 deprecated subdependencies found: are-we-there-yet2.0.0, are-we-there-yet3.0.1, gauge3.0.2, gauge4.0.4, glob7.2.3, inflight1.0.6, node-domexception1.0.0, npmlog5.0.1, npmlog6.0.2, prebuild-install7.1.3, rimraf3.0.2 Packages: 68 -2 -- Progress: resolved 808, reused 662, downloaded 68, added 68, done WARN Issues with peer dependencies found . └─┬ openclaw-cn 0.1.7 └─┬ buape/carbon 0.14.0 └─┬ discordjs/voice 0.19.0 └─┬ prism-media 1.3.5 └── ✕ unmet peer opusscript^0.0.8: found 0.1.1 /home/skywalk/.local/share/pnpm/global/5: openclaw-cn 0.1.7 ╭ Warning ───────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ Ignored build scripts: openclaw-cn/baileys7.0.0-rc.9, better-sqlite312.6.2, node-llama-cpp3.15.0, │ │ openclaw-cn0.1.7. │ │ Run pnpm approve-builds -g to pick which dependencies should be allowed to run scripts. │ │ │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ Done in 1m 11.5s using pnpm v10.30.3仪表盘就绪◇ 仪表盘就绪 ───────────────────────────────────────────────────────────────────────────────╮ │ 仪表盘链接带令牌http://127.0.0.1:18789/?tokene8671423eb4a5b479455472e609668ba439d │ │ b35069e819af │ │ 在此机器上的浏览器中复制/粘贴此URL以控制Clawdbot。 │ │ 未检测到图形界面。从您的计算机打开 │ │ ssh -N -L 18789:127.0.0.1:18789 skywalk192.168.1.19 │ │ 然后打开 │ │ http://localhost:18789/ │ │ http://localhost:18789/?tokene8671423eb4a5b479455472e609668ba439db35069e819af │ │ 文档 │ │ https://docs.clawd.bot/gateway/remote │ │ https://docs.clawd.bot/web/control-ui │ ├────────────────────────────────────────────────────────────────────────────────────────────╯升级pnpm提示pnpm installScope: all 37 workspace projectsLockfile is up to date, resolution step is skippedPackages: 1103╭───────────────────────────────────────────────╮│ ││ Update available! 10.23.0 → 10.30.3. ││ Changelog: https://pnpm.io/v/10.30.3 ││ To update, run: corepack use pnpm10.30.3 ││ │╰───────────────────────────────────────────────╯Progress: resolved 1103, reused 949, downloaded 0, added 0升级命令corepack use pnpm10.30.3碰到了下面的报错但是版本已经升级到10.30.3了升级pnpm的时候报错corepack use pnpm10.30.3Installing pnpm10.30.3 in the project...Scope: all 37 workspace projectsLockfile is up to date, resolution step is skippedPackages: 1103ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED Failed to prepare git-hosted package fetched from https://github.com/tloncorp/api-beta.git: The git-hosted package tloncorp/api0.0.2 needs to execute build scripts but is not in the onlyBuiltDependencies allowlist.Add the package to onlyBuiltDependencies in your projects pnpm-workspace.yaml to allow it to run scripts. For example:onlyBuiltDependencies:- tloncorp/apiProgress: resolved 1103, reused 1099, downloaded 0, added 1095这个错误是因为 pnpm 10 引入了更严格的安全策略默认不允许 git-hosted 包执行构建脚本。由于Git 托管的依赖包tloncorp/api需要执行构建脚本但 pnpm 的安全策略默认禁止了非onlyBuiltDependencies列表中的包执行脚本。安装提示修改openclaw项目里的pnpm-workspace.yaml文件加入这一句- tloncorp/api文件内容变成packages: - . - ui - packages/* - extensions/* onlyBuiltDependencies: - lydell/node-pty - matrix-org/matrix-sdk-crypto-nodejs - napi-rs/canvas - whiskeysockets/baileys - authenticate-pam - esbuild - node-llama-cpp - protobufjs - sharp - tloncorp/api现在出现新的报错HTTP/2 stream 1 was not closed cleanly before end of the underlying streamERROR Command failed with exit code 128: git fetch --depth 1 origin 7eede1c1a756977b09f96aa14a92e2b06318ae87fatal: unable to access https://github.com/tloncorp/api-beta.git/: HTTP/2 stream 1 was not closed cleanly before end of the underlying stream增加git缓冲区大小试试git config --global http.postBuffer 524288000 # 500MB git config --global core.compression 0 pnpm install不管用使用镜像加速# 配置 GitHub 镜像如 ghproxy git config --global url.https://ghproxy.com/https://github.com/.insteadOf https://github.com/ # 完成后记得还原 git config --global --unset url.https://ghproxy.com/https://github.com/.insteadOf不管用尝试git使用 HTTP/1.1git config --global http.version HTTP/1.1现在还是有这个问题pnpm installScope: all 37 workspace projectsLockfile is up to date, resolution step is skippedPackages: 1103ERROR Command failed with exit code 128: git fetch --depth 1 origin 7eede1c1a756977b09f96aa14a92e2b06318ae87error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.fatal: expected flush after ref listingpnpm: Command failed with exit code 128: git fetch --depth 1 origin 7eede1c1a756977b09f96aa14a92e2b06318ae87error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.fatal: expected flush after ref listingat makeError (/home/skywalk/.cache/node/corepack/v1/pnpm/10.30.3/dist/pnpm.cjs:14863:17)at handlePromise (/home/skywalk/.cache/node/corepack/v1/pnpm/10.30.3/dist/pnpm.cjs:15434:33)at process.processTicksAndRejections (node:internal/process/task_queues:105:5)at async execGit (/home/skywalk/.cache/node/corepack/v1/pnpm/10.30.3/dist/pnpm.cjs:97634:26)at async gitFetcher (/home/skywalk/.cache/node/corepack/v1/pnpm/10.30.3/dist/pnpm.cjs:97578:11)at async fetcher (/home/skywalk/.cache/node/corepack/v1/pnpm/10.30.3/dist/pnpm.cjs:109192:16)at async run (/home/skywalk/.cache/node/corepack/v1/pnpm/10.30.3/dist/pnpm.cjs:108522:23)Progress: resolved 1103, reused 1099, downloaded 0, added 1099build的还是有这个问题GnuTLS recv error (-110):pnpm ui:build # auto-installs UI deps on first run openclaw2026.3.3 ui:build /home/skywalk/openclaw node scripts/ui.js buildScope: all 37 workspace projects.. | 1008 ERROR Command failed with exit code 128: git fetch --depth 1 origin 7eede1c1a756977b09f96aa14a92e2b06318ae87fatal: unable to access https://github.com/tloncorp/api-beta.git/: GnuTLS recv error (-110): The TLS connection was non-properly terminated.pnpm: Command failed with exit code 128: git fetch --depth 1 origin 7eede1c1a756977b09f96aa14a92e2b06318ae87fatal: unable to access https://github.com/tloncorp/api-beta.git/: GnuTLS recv error (-110): The TLS connection was non-properly terminated.at makeError (/home/skywalk/.cache/node/corepack/v1/pnpm/10.30.3/dist/pnpm.cjs:14863:17)at handlePromise (/home/skywalk/.cache/node/corepack/v1/pnpm/10.30.3/dist/pnpm.cjs:15434:33)at process.processTicksAndRejections (node:internal/process/task_queues:105:5)at async execGit (/home/skywalk/.cache/node/corepack/v1/pnpm/10.30.3/dist/pnpm.cjs:97634:26)at async gitFetcher (/home/skywalk/.cache/node/corepack/v1/pnpm/10.30.3/dist/pnpm.cjs:97578:11)at async fetcher (/home/skywalk/.cache/node/corepack/v1/pnpm/10.30.3/dist/pnpm.cjs:109192:16)at async run (/home/skywalk/.cache/node/corepack/v1/pnpm/10.30.3/dist/pnpm.cjs:108522:23).. | Progress: resolved 1008, reused 1004, downloaded 0, added 1004ELIFECYCLE Command failed with exit code 1.尝试更新gitsudo apt upgrade git还是不行。所以这个报错基本上没法解决除非用国内镜像安装....