惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

G
Google Developers Blog
Google DeepMind News
Google DeepMind News
Hugging Face - Blog
Hugging Face - Blog
D
Docker
F
Fortinet All Blogs
博客园 - 三生石上(FineUI控件)
Project Zero
Project Zero
Engineering at Meta
Engineering at Meta
J
Java Code Geeks
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Simon Willison's Weblog
Simon Willison's Weblog
S
Security Affairs
NISL@THU
NISL@THU
T
Tor Project blog
A
About on SuperTechFans
宝玉的分享
宝玉的分享
腾讯CDC
S
Schneier on Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
P
Privacy & Cybersecurity Law Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Stack Overflow Blog
Stack Overflow Blog
P
Privacy International News Feed
雷峰网
雷峰网
C
Cyber Attacks, Cyber Crime and Cyber Security
Vercel News
Vercel News
Cisco Talos Blog
Cisco Talos Blog
D
DataBreaches.Net
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Google Online Security Blog
Google Online Security Blog
Recorded Future
Recorded Future
L
LINUX DO - 热门话题
Microsoft Security Blog
Microsoft Security Blog
Latest news
Latest news
C
Check Point Blog
有赞技术团队
有赞技术团队
T
The Exploit Database - CXSecurity.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
云风的 BLOG
云风的 BLOG
SecWiki News
SecWiki News
Application and Cybersecurity Blog
Application and Cybersecurity Blog
爱范儿
爱范儿
月光博客
月光博客
V
Vulnerabilities – Threatpost
T
Threat Research - Cisco Blogs
P
Palo Alto Networks Blog
T
The Blog of Author Tim Ferriss
C
Cisco Blogs
Webroot Blog
Webroot Blog
S
Security @ Cisco Blogs

博客园 - Life·Intelligence

SSHFS + VS Code 挂载集群代码目录(macOS)| 集群vibe coding OpenClaw 多 Channel 实战总结(Windows 环境) miniconda转miniforge | conda | license LightDock | 蛋白质-多肽对接 | peptide-protein docking 蛋白结构预测 | alphafold | colabfold | docking 全栈生信 | PyMol使用教程 细胞通讯推断 | CCI | CellChat | CellphoneDB | iTALK | NicheNet ChromHMM教程 极简 | GRN | SCENIC | pySCENIC | 安装使用最新版scenicplus Linux下载zenodo数据 共定位 | colocalization 分析 | 表观因子 findOverlappingPeaks | peak取交集操作 根据基因名批量查询下载PDB蛋白结构数据库 R小技巧汇总 Signac处理bulk ATAC-seq数据 Differential motif enrichment | CentriMo | meme 亚马逊云 | AWS S3 | 基本操作 ATAC-seq | TOBIAS | footprint分析 TCGA+GTEx基因表达数据合并 | 多癌种表达分析 药物筛选 | drug screen
OpenClaw Windows 安装与 Debug 最终版教程(适用于 MiniPC i3-N305 / 无 GPU)
Life·Intelligence · 2026-02-01 · via 博客园 - Life·Intelligence

OpenClaw Windows 安装与 Debug 最终版教程(适用于 MiniPC i3-N305 / 无 GPU)

一、前置条件

1. 系统要求

  • Windows 10 / 11

  • x64 CPU(你的是 i3-N305,完全 OK)

  • 至少 8GB RAM(16GB 更稳)

2. 必须安装的依赖

OpenClaw 是 Node.js-based 的 CLI 工具,因此需要:

  1. Node.js ≥ 22.12.0
    下载地址:nodejs.org
    勾选 “Add to PATH”。

  2. VS Build Tool(必须)
    解决 node-gyp / llama.cpp 编译失败的核心:
    必须安装 Microsoft Visual Studio Build Tools + Desktop C++ workload

下载:
https://visualstudio.microsoft.com/visual-cpp-build-tools/

安装时勾选:

  • Desktop development with C++

  • Windows SDK(默认)

3. PowerShell 允许执行脚本(解决 npm.ps1 Cannot be loaded)

管理员 PowerShell:

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

二、安装 OpenClaw(最终正确流程)

1. 全局安装 OpenClaw(指向最新版本)

管理员 PowerShell:

npm install -g openclaw@latest

如果出现:

EBADENGINE Unsupported engine  
requires node >=22.12.0

说明 Node.js 版本太低 → 升级 Node 后重新安装。

2. 验证安装成功

openclaw --help

看到完整命令列表即成功。


三、常见错误与完整 Debug 过程(基于你的实际日志)

以下是你遇到的错误 + 对应解决方式,已整理成可复用的 Debug 手册。


错误 1:npm.ps1 cannot be loaded

原因:PowerShell 默认禁止脚本执行
解决:

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

错误 2:node-llama-cpp 反复 Clone llama.cpp / 编译失败

日志关键:

Failed to download cmake
Failed to build llama.cpp
ERR! find VS Could not find Visual Studio installation
You need “Desktop development with C++”

原因:你的机器缺少 C++ 编译链,无法构建 llama.cpp。
解决:安装 VS Build Tools + C++ Workload。


错误 3:ENOENT: Could not read package.json

例如:

Could not read package.json:
C:\Users\...\_npx\xxxx\package.json

原因:npm 缓存损坏。
解决:清空缓存目录:

Remove-Item -Recurse -Force "$env:LOCALAPPDATA\npm-cache\_npx"

错误 4:Vulkan 支持失败

The prebuilt binary with Vulkan support is not compatible
falling back to building from source

你的 mini PC 没有独立 GPU → 不支持 Vulkan → 正常警告,可忽略。
OpenClaw 会 fallback 到 CPU 模式。


错误 5:Gateway 无法访问(127.0.0.1 refused)

原因可能有两类:

  1. Gateway 没启动

  2. 端口未开放 / 被占用

正确启动方式

openclaw gateway

然后访问:

http://127.0.0.1:18789

http://localhost:18789
(端口可能随配置不同)

若你启用了 dev 模式,端口变为 19001:

openclaw --dev gateway

四、安装完成后如何启动 OpenClaw 的 Dashboard

全流程:

openclaw setup
openclaw onboard
openclaw gateway
openclaw dashboard

其中:

  • setup:初始化 ~/.openclaw 目录

  • onboard:引导配置

  • gateway:启动核心服务

  • dashboard:打开你的控制面板

必须 按顺序 执行一次。

之后使用时,只需启动:

openclaw gateway

浏览器访问:

http://localhost:18789

五、休眠 / 睡眠的影响(关键)

Windows 一旦进入 sleep/hibernate:

  • CPU 停止

  • 内存冻结

  • 所有 OpenClaw 服务暂停

OpenClaw 无法在睡眠中运行。

解决方案:

  • 禁用睡眠(推荐)

  • 或把 OpenClaw 装在 Always-ON 的设备(NAS、小主机等)


六、推荐的 Windows 永不休眠设置(适合当成 AI 自动化节点)

设置 → 系统 → 电源与睡眠 → 睡眠 = 从不
设置 → 屏幕 = 可关闭
高级电源设置 → 睡眠之后 = 从不

七、最终验证(确认一切正常)

  1. 打开 PowerShell:

openclaw doctor

出现:

✔ Gateway running
✔ Workspace OK
✔ Browser OK

即表示系统完全正常。


最终总结(给未来的你或别人参考)

你成功解决了三个核心问题:

  1. PowerShell 执行权限不足 → 开启 RemoteSigned

  2. Node 版本过低 → 升级 Node >= 22.12

  3. 缺少 C++ 编译链 → 安装 VS Build Tools(最关键)

  4. npm 缓存损坏 → 清理 _npx 缓存

  5. Gateway 未启动 → Dashboard 无法连接 → 手动启动 openclaw gateway

现在你的 i3-N305 Mini PC 已经可作为一个:

本地 AI 自动化服务器(OpenClaw Agent Node)

你可以随时通过:

openclaw gateway

来启动它,并远程访问 Dashboard 进行操作。