树莓派zero安装openclaw

第一段:nodejs安装,由于openclaw官方要求 版本至少22,而树莓派zero是armv6l,node官方版本已经不支持,只能安装非官方编译的版本

复制代码
 cd ~
sudo rm -rf /usr/local/node

# 下载非官方 ARMv6L 构建(26MB)
wget https://unofficial-builds.nodejs.org/download/release/v22.22.0/node-v22.22.0-linux-armv6l.tar.xz

# 解压
tar -xf node-v22.22.0-linux-armv6l.tar.xz

# 移动到系统目录
sudo mv node-v22.22.0-linux-armv6l /usr/local/node

# 清理压缩包
rm node-v22.22.0-linux-armv6l.tar.xz

# 配置环境变量
echo 'export PATH=/usr/local/node/bin:$PATH' >> ~/.bashrc
source ~/.bashrc

# 验证安装
node --version  # 应显示 v22.22.0
npm --version

第二步:安装openclaw

复制代码
# 设置淘宝 npm 镜像
npm config set registry https://registry.npmmirror.com

# 验证
npm config get registry

# 重新运行安装脚本
curl -fsSL https://clawd.org.cn/install.sh | bash

# 设置淘宝 npm 镜像
npm config set registry https://registry.npmmirror.com

# 验证
npm config get registry

# 重新运行安装脚本
curl -fsSL https://clawd.org.cn/install.sh | bash
https://registry.npmmirror.com

  ╭──────────────────────────────────────╮
  │       🧡 OpenClaw 中文社区 安装程序       │
  ╰──────────────────────────────────────╯

  如果能跑,那就是自动化;如果崩了,那就是学习机会。

[✓] 检测到 Linux
[✓] Node.js v22.22.0 已安装
[✓] Git 已安装 (2.39.2)

[*] 正在安装 openclaw-cn...
[*] npm 源: https://registry.npmjs.org





npm warn deprecated npmlog@6.0.2: This package is no longer supported.
npm warn deprecated are-we-there-yet@3.0.1: This package is no longer supported.
npm warn deprecated gauge@4.0.4: This package is no longer supported.
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
npm warn deprecated tar@6.2.1: Old versions of tar 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 deprecated glob@11.1.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 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 deprecated tar@7.5.4: Old versions of tar 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

added 514 packages in 17m
[✓] OpenClaw 中文社区 安装成功

[✓] 已安装: openclaw-cn

[*] 正在启动引导配置...

[openclaw-cn] 启动CLI失败: Error: Cannot find module '@mariozechner/clipboard-linux-arm-gnueabihf'
Require stack:
- /home/xgocn/.npm-global/lib/node_modules/openclaw-cn/node_modules/@mariozechner/clipboard/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1383:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)
    at Module._load (node:internal/modules/cjs/loader:1192:37)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
    at Module.require (node:internal/modules/cjs/loader:1463:12)
    at require (node:internal/modules/helpers:147:16)
    at Object.<anonymous> (/home/xgocn/.npm-global/lib/node_modules/openclaw-cn/node_modules/@mariozechner/clipboard/index.js:234:29)

第三步:解决缺少的库

复制代码
# 进入 openclaw-cn 目录
cd ~/.npm-global/lib/node_modules/openclaw-cn

# 尝试安装缺失的 ARM 依赖
npm install @mariozechner/clipboard-linux-arm-gnueabihf --force

# 或重新编译所有原生模块
npm rebuild

# 如果失败,尝试安装编译工具后重建
sudo apt install -y python3 make g++
npm rebuild --build-from-source

还在继续......

相关推荐
阿杰学AI12 小时前
AI核心知识129—大语言模型之 向量数据库(简洁且通俗易懂版)
数据库·人工智能·ai·语言模型·自然语言处理·向量数据库·vector database
阿杰学AI15 小时前
AI核心知识131—大语言模型之 自主智能体(简洁且通俗易懂版)
人工智能·ai·语言模型·自然语言处理·agent·智能体·自主智能体
阿杰学AI16 小时前
AI核心知识132—大语言模型之 AI for Science(简洁且通俗易懂版)
人工智能·ai·语言模型·自然语言处理·aigc·ai for science·ai4s
财经资讯数据_灵砚智能17 小时前
基于全球经济类多源新闻的NLP情感分析与数据可视化(夜间-次晨)2026年4月19日
人工智能·python·信息可视化·语言模型·自然语言处理·知识图谱·ai编程
Alice-YUE17 小时前
ai对话平台中的functioncalling+mcp
前端·笔记·学习·语言模型
YuanDaima204818 小时前
大语言模型生命周期全链路解析:从架构基石到高效推理
开发语言·人工智能·python·语言模型·架构·transformer
量子-Alex19 小时前
【大模型智能体】智能体技能:面向大语言模型功能扩展的Claude技能数据驱动分析
人工智能·语言模型·自然语言处理
dc_young20 小时前
【具身任务规划】REVER 与 RoboFarseer:用“可验证奖励”把VLM训练成机器人闭环长任务规划器
人工智能·语言模型·机器人
Shining059621 小时前
QEMU 编译开发环境搭建
人工智能·语言模型·自然语言处理·云原生·qemu·vllm·华为昇腾
Alice-YUE21 小时前
ai对话平台流式响应输出怎么实现?
前端·笔记·ai·语言模型