diff --git a/openClaw/openClaw-win11安装指南.md b/openClaw/openClaw-win11安装指南.md index 1c4fefa..82fac17 100755 --- a/openClaw/openClaw-win11安装指南.md +++ b/openClaw/openClaw-win11安装指南.md @@ -1,4 +1,4 @@ -# OpenClaw Windows 11 一键安装指南(小白专属版) +# OpenClaw Windows 11 一键安装指南 > > ✅ 操作难度:☆☆☆☆☆ 全程复制粘贴,不用懂技术,10分钟搞定 > @@ -35,7 +35,7 @@ --- -## 🚀 第二阶段:详细安装步骤(小白一键版) +## 🚀 第二阶段:详细安装步骤 > > ✅ 全程复制粘贴3条命令,全自动安装,不用懂任何技术 > @@ -54,7 +54,27 @@ Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned > 1. 粘贴后会出现询问,输入 `Y` 然后按回车 ✔️ > 2. 如果没看到询问直接跳回命令行,说明已经设置好了,直接下一步 -### 2. 一键安装OpenClaw(全自动) +### 2. 安装 git + +运行下载命令,安装 git + +```PowerShell +iwr https://registry.npmmirror.com/-/binary/git-for-windows/v2.44.0.windows.1/Git-2.44.0-64-bit.exe -OutFile git.exe +Start-Process .\git.exe +``` + +然后一路点击“next”,直到安装完成。 +![git_complete](./src/git_complete.png) +关闭当前窗口,重新打开管理员PowerShell。输入 `git --version` ,输出 `git version 2.xxx` 即为安装成功。 + +Ps: 挂梯子用户可直接一键安装 + +```PowerShell +# 挂梯子可访问外网用户可使用 +winget install --id Git.Git -e --source winget +``` + +### 3. 一键安装OpenClaw(全自动) 继续在同一个PowerShell窗口里,**复制粘贴**下面这整行命令,然后按回车: @@ -68,9 +88,9 @@ iwr -useb https://openclaw.ai/install.ps1 | iex > 2. 期间会弹出一些进度条,等个5-10分钟就行 > 3. 如果网络慢,会给你提示"正在下载...",耐心等 > 4. 看到「OpenClaw安装完成」的提示就说明这步成功了 ✔️ -> 5. 常见安装错误见[win11安装openclaw问题及解决](./win11%E5%AE%89%E8%A3%85openclaw%E9%97%AE%E9%A2%98%E5%8F%8A%E8%A7%A3%E5%86%B3.md) +> 5. 国内网络大概率会失败,常见安装错误见[win11安装openclaw问题及解决](./win11%E5%AE%89%E8%A3%85openclaw%E9%97%AE%E9%A2%98%E5%8F%8A%E8%A7%A3%E5%86%B3.md) -### 3. 验证安装成功 +### 4. 验证安装成功 安装完成后,继续在PowerShell里输入下面这行命令,按回车: diff --git a/openClaw/src/error_git.png b/openClaw/src/error_git.png new file mode 100644 index 0000000..da9b7b7 Binary files /dev/null and b/openClaw/src/error_git.png differ diff --git a/openClaw/src/git_complete.png b/openClaw/src/git_complete.png new file mode 100644 index 0000000..46ebcf9 Binary files /dev/null and b/openClaw/src/git_complete.png differ diff --git a/openClaw/win11安装openclaw问题及解决.md b/openClaw/win11安装openclaw问题及解决.md index c3b60bb..e49512d 100755 --- a/openClaw/win11安装openclaw问题及解决.md +++ b/openClaw/win11安装openclaw问题及解决.md @@ -2,6 +2,15 @@ ## 一键安装失败 iwr -useb | iex +- git 缺失 +![error_git](./src/error_git.png) +**问题**:git 缺失导致一键安装失败 +**解决**:安装 git + +```PowerShell +winget install --id Git.Git -e --source winget +``` + - 报错如下,且要求选择运行 .iso 的软件 ![error_iso](./src/error_iso.png) **问题**:.msi 文件没有正确关联到 Windows Installer 导致nodejs 安装失败