{"id":162,"date":"2026-03-21T22:47:20","date_gmt":"2026-03-21T14:47:20","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/install-installer\/"},"modified":"2026-03-21T23:23:49","modified_gmt":"2026-03-21T15:23:49","slug":"install-installer","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/install-installer\/","title":{"rendered":"\u5b89\u88c5\u5668\u5185\u90e8\u673a\u5236"},"content":{"rendered":"<h1>&#23433;&#35013;&#22120;&#20869;&#37096;&#26426;&#21046;<\/h1>\n<p>OpenClaw &#25552;&#20379;&#19977;&#20010;&#23433;&#35013;&#33050;&#26412;&#65292;&#30001; <code>openclaw.ai<\/code> &#25552;&#20379;&#12290;<\/p>\n<table>\n<thead>\n<tr>\n<th>&#33050;&#26412;<\/th>\n<th>&#24179;&#21488;<\/th>\n<th>&#21151;&#33021;<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><a href=\"#installsh\"><code>install.sh<\/code><\/a><\/td>\n<td>macOS \/ Linux \/ WSL<\/td>\n<td>&#22914;&#26377;&#38656;&#35201;&#21017;&#23433;&#35013; Node&#65292;&#36890;&#36807; npm&#65288;&#40664;&#35748;&#65289;&#25110; git &#23433;&#35013; OpenClaw&#65292;&#24182;&#21487;&#36816;&#34892;&#26032;&#25163;&#24341;&#23548;&#12290;<\/td>\n<\/tr>\n<tr>\n<td><a href=\"#install-clish\"><code>install-cli.sh<\/code><\/a><\/td>\n<td>macOS \/ Linux \/ WSL<\/td>\n<td>&#23558; Node + OpenClaw &#23433;&#35013;&#21040;&#26412;&#22320;&#21069;&#32512;&#65288;<code>~\/.openclaw<\/code>&#65289;&#20013;&#12290;&#26080;&#38656; root&#12290;<\/td>\n<\/tr>\n<tr>\n<td><a href=\"#installps1\"><code>install.ps1<\/code><\/a><\/td>\n<td>Windows&#65288;PowerShell&#65289;<\/td>\n<td>&#22914;&#26377;&#38656;&#35201;&#21017;&#23433;&#35013; Node&#65292;&#36890;&#36807; npm&#65288;&#40664;&#35748;&#65289;&#25110; git &#23433;&#35013; OpenClaw&#65292;&#24182;&#21487;&#36816;&#34892;&#26032;&#25163;&#24341;&#23548;&#12290;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>&#24555;&#36895;&#21629;&#20196;<\/h2>\n<p>    <code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n    curl -fsSL --proto '=https' --tlsv1.2 https:\/\/openclaw.ai\/install.sh | bash<\/code><\/p>\n<pre><code>```bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}\ncurl -fsSL --proto '=https' --tlsv1.2 https:\/\/openclaw.ai\/install.sh | bash -s -- --help\n```\n<\/code><\/pre>\n<\/p>\n<p>\n    <code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n    curl -fsSL --proto '=https' --tlsv1.2 https:\/\/openclaw.ai\/install-cli.sh | bash<\/code><\/p>\n<pre><code>```bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}\ncurl -fsSL --proto '=https' --tlsv1.2 https:\/\/openclaw.ai\/install-cli.sh | bash -s -- --help\n```\n<\/code><\/pre>\n<\/p>\n<p>\n    <code>powershell  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n    iwr -useb https:\/\/openclaw.ai\/install.ps1 | iex<\/code><\/p>\n<pre><code>```powershell  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}\n&amp; ([scriptblock]::Create((iwr -useb https:\/\/openclaw.ai\/install.ps1))) -Tag beta -NoOnboard -DryRun\n```\n<\/code><\/pre>\n<\/p>\n<p>\n  &#22914;&#26524;&#23433;&#35013;&#25104;&#21151;&#20294;&#22312;&#26032;&#32456;&#31471;&#20013;&#25214;&#19981;&#21040; <code>openclaw<\/code>&#65292;&#35831;&#21442;&#35265; <a href=\"\/install\/node#troubleshooting\">Node.js &#25925;&#38556;&#25490;&#38500;<\/a>&#12290;\n<\/p>\n<hr>\n<h2>install.sh<\/h2>\n<p>\n  &#25512;&#33616;&#29992;&#20110;&#22823;&#22810;&#25968; macOS\/Linux\/WSL &#19978;&#30340;&#20132;&#20114;&#24335;&#23433;&#35013;&#12290;\n<\/p>\n<h3>&#27969;&#31243;&#65288;install.sh&#65289;<\/h3>\n<p>    &#25903;&#25345; macOS &#21644; Linux&#65288;&#21253;&#25324; WSL&#65289;&#12290;&#22914;&#26524;&#26816;&#27979;&#21040; macOS&#65292;&#21017;&#20250;&#22312;&#32570;&#23569; Homebrew &#26102;&#23433;&#35013;&#23427;&#12290;\n  <\/p>\n<p>\n    &#26816;&#26597; Node &#29256;&#26412;&#65292;&#24182;&#22312;&#38656;&#35201;&#26102;&#23433;&#35013; Node 24&#65288;macOS &#19978;&#20351;&#29992; Homebrew&#65292;Linux apt\/dnf\/yum &#19978;&#20351;&#29992; NodeSource &#35774;&#32622;&#33050;&#26412;&#65289;&#12290;&#20026;&#20102;&#20860;&#23481;&#24615;&#65292;OpenClaw &#20173;&#25903;&#25345; Node 22 LTS&#65292;&#30446;&#21069;&#20026; <code>22.16+<\/code>&#12290;\n  <\/p>\n<p>\n    &#22914;&#26524;&#32570;&#23569; Git&#65292;&#21017;&#23433;&#35013;&#23427;&#12290;\n  <\/p>\n<p>\n    * <code>npm<\/code> &#26041;&#27861;&#65288;&#40664;&#35748;&#65289;&#65306;&#20840;&#23616; npm &#23433;&#35013;<br \/>\n    * <code>git<\/code> &#26041;&#27861;&#65306;&#20811;&#38534;\/&#26356;&#26032;&#20179;&#24211;&#65292;&#20351;&#29992; pnpm &#23433;&#35013;&#20381;&#36182;&#65292;&#26500;&#24314;&#65292;&#28982;&#21518;&#23558;&#21253;&#35013;&#22120;&#23433;&#35013;&#21040; <code>~\/.local\/bin\/openclaw<\/code>\n  <\/p>\n<p>\n    * &#22312;&#21319;&#32423;&#21644; git &#23433;&#35013;&#26102;&#36816;&#34892; <code>openclaw doctor --non-interactive<\/code>&#65288;&#23613;&#21147;&#32780;&#20026;&#65289;<br \/>\n    * &#22312;&#36866;&#24403;&#24773;&#20917;&#19979;&#23581;&#35797;&#36816;&#34892;&#26032;&#25163;&#24341;&#23548;&#65288;&#26377; TTY&#12289;&#26410;&#31105;&#29992;&#26032;&#25163;&#24341;&#23548;&#65292;&#24182;&#19988; bootstrap\/&#37197;&#32622;&#26816;&#26597;&#36890;&#36807;&#65289;<br \/>\n    * &#40664;&#35748;&#35774;&#32622; <code>SHARP_IGNORE_GLOBAL_LIBVIPS=1<\/code><\/p>\n<h3>&#28304;&#30721;&#26816;&#20986;&#26816;&#27979;<\/h3>\n<p>&#22914;&#26524;&#22312; OpenClaw &#26816;&#20986;&#30446;&#24405;&#20013;&#36816;&#34892;&#65288;<code>package.json<\/code> + <code>pnpm-workspace.yaml<\/code>&#65289;&#65292;&#33050;&#26412;&#20250;&#25552;&#20379;&#65306;<\/p>\n<ul>\n<li>&#20351;&#29992;&#26816;&#20986;&#30446;&#24405;&#65288;<code>git<\/code>&#65289;&#65292;&#25110;<\/li>\n<li>&#20351;&#29992;&#20840;&#23616;&#23433;&#35013;&#65288;<code>npm<\/code>&#65289;<\/li>\n<\/ul>\n<p>&#22914;&#26524;&#27809;&#26377;&#21487;&#29992; TTY &#19988;&#26410;&#35774;&#32622;&#23433;&#35013;&#26041;&#27861;&#65292;&#23427;&#23558;&#40664;&#35748;&#20351;&#29992; <code>npm<\/code> &#24182;&#21457;&#20986;&#35686;&#21578;&#12290;<\/p>\n<p>&#23545;&#20110;&#26080;&#25928;&#30340;&#26041;&#27861;&#36873;&#25321;&#25110;&#26080;&#25928;&#30340; <code>--install-method<\/code> &#20540;&#65292;&#33050;&#26412;&#20250;&#20197;&#36864;&#20986;&#30721; <code>2<\/code> &#36864;&#20986;&#12290;<\/p>\n<h3>&#31034;&#20363;&#65288;install.sh&#65289;<\/h3>\n<p>    <code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n    curl -fsSL --proto '=https' --tlsv1.2 https:\/\/openclaw.ai\/install.sh | bash<\/code>\n  <\/p>\n<p>\n    <code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n    curl -fsSL --proto '=https' --tlsv1.2 https:\/\/openclaw.ai\/install.sh | bash -s -- --no-onboard<\/code>\n  <\/p>\n<p>\n    <code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n    curl -fsSL --proto '=https' --tlsv1.2 https:\/\/openclaw.ai\/install.sh | bash -s -- --install-method git<\/code>\n  <\/p>\n<p>\n    <code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n    curl -fsSL --proto '=https' --tlsv1.2 https:\/\/openclaw.ai\/install.sh | bash -s -- --version main<\/code>\n  <\/p>\n<p>\n    <code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n    curl -fsSL --proto '=https' --tlsv1.2 https:\/\/openclaw.ai\/install.sh | bash -s -- --dry-run<\/code><\/p>\n<p>    | &#26631;&#24535;                                    | &#35828;&#26126;                                   |<br \/>\n    | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; |<br \/>\n    | <code>--install-method npm|git<\/code>           | &#36873;&#25321;&#23433;&#35013;&#26041;&#27861;&#65288;&#40664;&#35748;&#65306;<code>npm<\/code>&#65289;&#12290;&#21035;&#21517;&#65306;<code>--method<\/code>       |<br \/>\n    | <code>--npm<\/code>                               | npm &#26041;&#27861;&#24555;&#25463;&#26041;&#24335;                           |<br \/>\n    | <code>--git<\/code>                               | git &#26041;&#27861;&#24555;&#25463;&#26041;&#24335;&#12290;&#21035;&#21517;&#65306;<code>--github<\/code>             |<br \/>\n    | <code>--version &lt;version|dist-tag|spec&gt;<\/code> | npm &#29256;&#26412;&#12289;dist-tag &#25110;&#21253;&#35268;&#33539;&#65288;&#40664;&#35748;&#65306;<code>latest<\/code>&#65289;    |<br \/>\n    | <code>--beta<\/code>                              | &#22914;&#26377;&#21487;&#29992;&#21017;&#20351;&#29992; beta dist-tag&#65292;&#21542;&#21017;&#22238;&#36864;&#21040; <code>latest<\/code> |<br \/>\n    | <code>--git-dir &lt;path&gt;<\/code>                    | &#26816;&#20986;&#30446;&#24405;&#65288;&#40664;&#35748;&#65306;<code>~\/openclaw<\/code>&#65289;&#12290;&#21035;&#21517;&#65306;<code>--dir<\/code>     |<br \/>\n    | <code>--no-git-update<\/code>                     | &#23545;&#29616;&#26377;&#26816;&#20986;&#36339;&#36807; <code>git pull<\/code>                   |<br \/>\n    | <code>--no-prompt<\/code>                         | &#31105;&#29992;&#25552;&#31034;                                 |<br \/>\n    | <code>--no-onboard<\/code>                        | &#36339;&#36807;&#26032;&#25163;&#24341;&#23548;                               |<br \/>\n    | <code>--onboard<\/code>                           | &#21551;&#29992;&#26032;&#25163;&#24341;&#23548;                               |<br \/>\n    | <code>--dry-run<\/code>                           | &#25171;&#21360;&#25805;&#20316;&#20294;&#19981;&#24212;&#29992;&#26356;&#25913;                           |<br \/>\n    | <code>--verbose<\/code>                           | &#21551;&#29992;&#35843;&#35797;&#36755;&#20986;&#65288;<code>set -x<\/code>&#12289;npm notice &#32423;&#21035;&#26085;&#24535;&#65289;     |<br \/>\n    | <code>--help<\/code>                              | &#26174;&#31034;&#29992;&#27861;&#65288;<code>-h<\/code>&#65289;                           |\n  <\/p>\n<p>\n    | &#21464;&#37327;                                                      | &#35828;&#26126;                          |<br \/>\n    | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; |<br \/>\n    | <code>OPENCLAW_INSTALL_METHOD=git|npm<\/code>                      | &#23433;&#35013;&#26041;&#27861;                        |<br \/>\n    | <code>OPENCLAW_VERSION=latest|next|main|&lt;semver&gt;|&lt;spec&gt;<\/code> | npm &#29256;&#26412;&#12289;dist-tag &#25110;&#21253;&#35268;&#33539;        |<br \/>\n    | <code>OPENCLAW_BETA=0|1<\/code>                                    | &#22914;&#26377;&#21487;&#29992;&#21017;&#20351;&#29992; beta                |<br \/>\n    | <code>OPENCLAW_GIT_DIR=&lt;path&gt;<\/code>                               | &#26816;&#20986;&#30446;&#24405;                        |<br \/>\n    | <code>OPENCLAW_GIT_UPDATE=0|1<\/code>                              | &#20999;&#25442; git &#26356;&#26032;                   |<br \/>\n    | <code>OPENCLAW_NO_PROMPT=1<\/code>                                  | &#31105;&#29992;&#25552;&#31034;                        |<br \/>\n    | <code>OPENCLAW_NO_ONBOARD=1<\/code>                                 | &#36339;&#36807;&#26032;&#25163;&#24341;&#23548;                      |<br \/>\n    | <code>OPENCLAW_DRY_RUN=1<\/code>                                    | &#35797;&#36816;&#34892;&#27169;&#24335;                       |<br \/>\n    | <code>OPENCLAW_VERBOSE=1<\/code>                                    | &#35843;&#35797;&#27169;&#24335;                        |<br \/>\n    | <code>OPENCLAW_NPM_LOGLEVEL=error|warn|notice<\/code>             | npm &#26085;&#24535;&#32423;&#21035;                    |<br \/>\n    | <code>SHARP_IGNORE_GLOBAL_LIBVIPS=0|1<\/code>                      | &#25511;&#21046; sharp\/libvips &#34892;&#20026;&#65288;&#40664;&#35748;&#65306;<code>1<\/code>&#65289; |<\/p>\n<hr>\n<h2>install-cli.sh<\/h2>\n<p>\n  &#36866;&#29992;&#20110;&#20320;&#24076;&#26395;&#25152;&#26377;&#20869;&#23481;&#37117;&#25918;&#22312;&#26412;&#22320;&#21069;&#32512;&#65288;&#40664;&#35748; <code>~\/.openclaw<\/code>&#65289;&#19979;&#65292;&#24182;&#19988;&#19981;&#20381;&#36182;&#31995;&#32479; Node &#30340;&#29615;&#22659;&#12290;\n<\/p>\n<h3>&#27969;&#31243;&#65288;install-cli.sh&#65289;<\/h3>\n<p>    &#23558;&#22266;&#23450;&#30340;&#21463;&#25903;&#25345; Node tarball&#65288;&#24403;&#21069;&#40664;&#35748; <code>22.22.0<\/code>&#65289;&#19979;&#36733;&#21040; <code>&lt;prefix&gt;\/tools\/node-v&lt;version&gt;<\/code>&#65292;&#24182;&#39564;&#35777; SHA-256&#12290;\n  <\/p>\n<p>\n    &#22914;&#26524;&#32570;&#23569; Git&#65292;&#21017;&#23581;&#35797;&#22312; Linux &#19978;&#36890;&#36807; apt\/dnf\/yum &#23433;&#35013;&#65292;&#25110;&#22312; macOS &#19978;&#36890;&#36807; Homebrew &#23433;&#35013;&#12290;\n  <\/p>\n<p>\n    &#20351;&#29992; <code>--prefix &lt;prefix&gt;<\/code> &#36890;&#36807; npm &#23433;&#35013;&#65292;&#28982;&#21518;&#23558;&#21253;&#35013;&#22120;&#20889;&#20837; <code>&lt;prefix&gt;\/bin\/openclaw<\/code>&#12290;<\/p>\n<h3>&#31034;&#20363;&#65288;install-cli.sh&#65289;<\/h3>\n<p>    <code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n    curl -fsSL --proto '=https' --tlsv1.2 https:\/\/openclaw.ai\/install-cli.sh | bash<\/code>\n  <\/p>\n<p>\n    <code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n    curl -fsSL --proto '=https' --tlsv1.2 https:\/\/openclaw.ai\/install-cli.sh | bash -s -- --prefix \/opt\/openclaw --version latest<\/code>\n  <\/p>\n<p>\n    <code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n    curl -fsSL --proto '=https' --tlsv1.2 https:\/\/openclaw.ai\/install-cli.sh | bash -s -- --json --prefix \/opt\/openclaw<\/code>\n  <\/p>\n<p>\n    <code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n    curl -fsSL --proto '=https' --tlsv1.2 https:\/\/openclaw.ai\/install-cli.sh | bash -s -- --onboard<\/code><\/p>\n<p>    | &#26631;&#24535;                     | &#35828;&#26126;                                                |<br \/>\n    | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- |<br \/>\n    | <code>--prefix &lt;path&gt;<\/code>      | &#23433;&#35013;&#21069;&#32512;&#65288;&#40664;&#35748;&#65306;<code>~\/.openclaw<\/code>&#65289;                            |<br \/>\n    | <code>--version &lt;ver&gt;<\/code>      | OpenClaw &#29256;&#26412;&#25110; dist-tag&#65288;&#40664;&#35748;&#65306;<code>latest<\/code>&#65289;                |<br \/>\n    | <code>--node-version &lt;ver&gt;<\/code> | Node &#29256;&#26412;&#65288;&#40664;&#35748;&#65306;<code>22.22.0<\/code>&#65289;                             |<br \/>\n    | <code>--json<\/code>               | &#36755;&#20986; NDJSON &#20107;&#20214;                                      |<br \/>\n    | <code>--onboard<\/code>            | &#23433;&#35013;&#21518;&#36816;&#34892; <code>openclaw onboard<\/code>                          |<br \/>\n    | <code>--no-onboard<\/code>         | &#36339;&#36807;&#26032;&#25163;&#24341;&#23548;&#65288;&#40664;&#35748;&#65289;                                        |<br \/>\n    | <code>--set-npm-prefix<\/code>     | &#22312; Linux &#19978;&#65292;&#22914;&#26524;&#24403;&#21069;&#21069;&#32512;&#19981;&#21487;&#20889;&#65292;&#21017;&#24378;&#21046;&#23558; npm &#21069;&#32512;&#35774;&#20026; <code>~\/.npm-global<\/code> |<br \/>\n    | <code>--help<\/code>               | &#26174;&#31034;&#29992;&#27861;&#65288;<code>-h<\/code>&#65289;                                        |\n  <\/p>\n<p>\n    | &#21464;&#37327;                                          | &#35828;&#26126;                                |<br \/>\n    | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; |<br \/>\n    | <code>OPENCLAW_PREFIX=&lt;path&gt;<\/code>                    | &#23433;&#35013;&#21069;&#32512;                              |<br \/>\n    | <code>OPENCLAW_VERSION=&lt;ver&gt;<\/code>                    | OpenClaw &#29256;&#26412;&#25110; dist-tag             |<br \/>\n    | <code>OPENCLAW_NODE_VERSION=&lt;ver&gt;<\/code>               | Node &#29256;&#26412;                           |<br \/>\n    | <code>OPENCLAW_NO_ONBOARD=1<\/code>                     | &#36339;&#36807;&#26032;&#25163;&#24341;&#23548;                            |<br \/>\n    | <code>OPENCLAW_NPM_LOGLEVEL=error|warn|notice<\/code> | npm &#26085;&#24535;&#32423;&#21035;                          |<br \/>\n    | <code>OPENCLAW_GIT_DIR=&lt;path&gt;<\/code>                   | &#26087;&#29256;&#28165;&#29702;&#26597;&#25214;&#36335;&#24452;&#65288;&#29992;&#20110;&#21024;&#38500;&#26087;&#30340; <code>Peekaboo<\/code> &#23376;&#27169;&#22359;&#26816;&#20986;&#65289; |<br \/>\n    | <code>SHARP_IGNORE_GLOBAL_LIBVIPS=0|1<\/code>          | &#25511;&#21046; sharp\/libvips &#34892;&#20026;&#65288;&#40664;&#35748;&#65306;<code>1<\/code>&#65289;       |<\/p>\n<hr>\n<h2>install.ps1<\/h2>\n<h3>&#27969;&#31243;&#65288;install.ps1&#65289;<\/h3>\n<p>    &#38656;&#35201; PowerShell 5+&#12290;\n  <\/p>\n<p>\n    &#22914;&#26524;&#32570;&#23569;&#65292;&#21017;&#20381;&#27425;&#23581;&#35797;&#36890;&#36807; winget&#12289;Chocolatey&#12289;Scoop &#23433;&#35013;&#12290;&#20026;&#20102;&#20860;&#23481;&#24615;&#65292;Node 22 LTS&#65288;&#24403;&#21069;&#20026; <code>22.16+<\/code>&#65289;&#20173;&#28982;&#21463;&#25903;&#25345;&#12290;\n  <\/p>\n<p>\n    * <code>npm<\/code> &#26041;&#27861;&#65288;&#40664;&#35748;&#65289;&#65306;&#20351;&#29992;&#25152;&#36873; <code>-Tag<\/code> &#36827;&#34892;&#20840;&#23616; npm &#23433;&#35013;<br \/>\n    * <code>git<\/code> &#26041;&#27861;&#65306;&#20811;&#38534;\/&#26356;&#26032;&#20179;&#24211;&#65292;&#20351;&#29992; pnpm &#23433;&#35013;\/&#26500;&#24314;&#65292;&#24182;&#23558;&#21253;&#35013;&#22120;&#23433;&#35013;&#21040; <code>%USERPROFILE%.localbinopenclaw.cmd<\/code>\n  <\/p>\n<p>\n    &#22312;&#21487;&#33021;&#24773;&#20917;&#19979;&#23558;&#25152;&#38656; bin &#30446;&#24405;&#28155;&#21152;&#21040;&#29992;&#25143; PATH&#65292;&#28982;&#21518;&#22312;&#21319;&#32423;&#21644; git &#23433;&#35013;&#26102;&#36816;&#34892; <code>openclaw doctor --non-interactive<\/code>&#65288;&#23613;&#21147;&#32780;&#20026;&#65289;&#12290;<\/p>\n<h3>&#31034;&#20363;&#65288;install.ps1&#65289;<\/h3>\n<p>    <code>powershell  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n    iwr -useb https:\/\/openclaw.ai\/install.ps1 | iex<\/code>\n  <\/p>\n<p>\n    <code>powershell  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n    &amp; ([scriptblock]::Create((iwr -useb https:\/\/openclaw.ai\/install.ps1))) -InstallMethod git<\/code>\n  <\/p>\n<p>\n    <code>powershell  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n    &amp; ([scriptblock]::Create((iwr -useb https:\/\/openclaw.ai\/install.ps1))) -Tag main<\/code>\n  <\/p>\n<p>\n    <code>powershell  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n    &amp; ([scriptblock]::Create((iwr -useb https:\/\/openclaw.ai\/install.ps1))) -InstallMethod git -GitDir \"C:openclaw\"<\/code>\n  <\/p>\n<p>\n    <code>powershell  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n    &amp; ([scriptblock]::Create((iwr -useb https:\/\/openclaw.ai\/install.ps1))) -DryRun<\/code>\n  <\/p>\n<p>\n    <code>powershell  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n    # install.ps1 &#30446;&#21069;&#36824;&#27809;&#26377;&#19987;&#38376;&#30340; -Verbose &#26631;&#24535;&#12290;<br \/>\n    Set-PSDebug -Trace 1<br \/>\n    &amp; ([scriptblock]::Create((iwr -useb https:\/\/openclaw.ai\/install.ps1))) -NoOnboard<br \/>\n    Set-PSDebug -Trace 0<\/code><\/p>\n<p>    | &#26631;&#24535;                          | &#35828;&#26126;                                |<br \/>\n    | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; |<br \/>\n    | <code>-InstallMethod npm|git<\/code>   | &#23433;&#35013;&#26041;&#27861;&#65288;&#40664;&#35748;&#65306;<code>npm<\/code>&#65289;                    |<br \/>\n    | <code>-Tag &lt;tag|version|spec&gt;<\/code> | npm dist-tag&#12289;&#29256;&#26412;&#25110;&#21253;&#35268;&#33539;&#65288;&#40664;&#35748;&#65306;<code>latest<\/code>&#65289;  |<br \/>\n    | <code>-GitDir &lt;path&gt;<\/code>            | &#26816;&#20986;&#30446;&#24405;&#65288;&#40664;&#35748;&#65306;<code>%USERPROFILE%openclaw<\/code>&#65289; |<br \/>\n    | <code>-NoOnboard<\/code>                | &#36339;&#36807;&#26032;&#25163;&#24341;&#23548;                            |<br \/>\n    | <code>-NoGitUpdate<\/code>              | &#36339;&#36807; <code>git pull<\/code>                     |<br \/>\n    | <code>-DryRun<\/code>                   | &#20165;&#25171;&#21360;&#25805;&#20316;                             |\n  <\/p>\n<p>\n    | &#21464;&#37327;                                 | &#35828;&#26126;          |<br \/>\n    | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- | &#8212;&#8212;&#8212;&#8211; |<br \/>\n    | <code>OPENCLAW_INSTALL_METHOD=git|npm<\/code> | &#23433;&#35013;&#26041;&#27861;        |<br \/>\n    | <code>OPENCLAW_GIT_DIR=&lt;path&gt;<\/code>          | &#26816;&#20986;&#30446;&#24405;        |<br \/>\n    | <code>OPENCLAW_NO_ONBOARD=1<\/code>            | &#36339;&#36807;&#26032;&#25163;&#24341;&#23548;      |<br \/>\n    | <code>OPENCLAW_GIT_UPDATE=0<\/code>            | &#31105;&#29992; git pull |<br \/>\n    | <code>OPENCLAW_DRY_RUN=1<\/code>               | &#35797;&#36816;&#34892;&#27169;&#24335;       |<\/p>\n<p>\n  &#22914;&#26524;&#20351;&#29992; <code>-InstallMethod git<\/code> &#19988;&#32570;&#23569; Git&#65292;&#33050;&#26412;&#20250;&#36864;&#20986;&#24182;&#25171;&#21360; Git for Windows &#38142;&#25509;&#12290;\n<\/p>\n<hr>\n<h2>CI &#21644;&#33258;&#21160;&#21270;<\/h2>\n<p>&#20351;&#29992;&#38750;&#20132;&#20114;&#24335;&#26631;&#24535;\/&#29615;&#22659;&#21464;&#37327;&#20197;&#23454;&#29616;&#21487;&#39044;&#27979;&#30340;&#36816;&#34892;&#12290;<\/p>\n<p>    <code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n    curl -fsSL --proto '=https' --tlsv1.2 https:\/\/openclaw.ai\/install.sh | bash -s -- --no-prompt --no-onboard<\/code>\n  <\/p>\n<p>\n    <code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n    OPENCLAW_INSTALL_METHOD=git OPENCLAW_NO_PROMPT=1<br \/>\n      curl -fsSL --proto '=https' --tlsv1.2 https:\/\/openclaw.ai\/install.sh | bash<\/code>\n  <\/p>\n<p>\n    <code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n    curl -fsSL --proto '=https' --tlsv1.2 https:\/\/openclaw.ai\/install-cli.sh | bash -s -- --json --prefix \/opt\/openclaw<\/code>\n  <\/p>\n<p>\n    <code>powershell  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n    &amp; ([scriptblock]::Create((iwr -useb https:\/\/openclaw.ai\/install.ps1))) -NoOnboard<\/code><\/p>\n<hr>\n<h2>&#25925;&#38556;&#25490;&#38500;<\/h2>\n<p>    <code>git<\/code> &#23433;&#35013;&#26041;&#27861;&#38656;&#35201; Git&#12290;&#23545;&#20110; <code>npm<\/code> &#23433;&#35013;&#65292;&#20173;&#28982;&#20250;&#26816;&#26597;\/&#23433;&#35013; Git&#65292;&#20197;&#36991;&#20813;&#24403;&#20381;&#36182;&#20351;&#29992; git URL &#26102;&#20986;&#29616; <code>spawn git ENOENT<\/code> &#22833;&#36133;&#12290;\n  <\/p>\n<p>\n    &#26576;&#20123; Linux &#35774;&#32622;&#20250;&#23558; npm &#20840;&#23616;&#21069;&#32512;&#25351;&#21521; root &#25317;&#26377;&#30340;&#36335;&#24452;&#12290;<code>install.sh<\/code> &#21487;&#20197;&#23558;&#21069;&#32512;&#20999;&#25442;&#21040; <code>~\/.npm-global<\/code>&#65292;&#24182;&#23558; PATH &#23548;&#20986;&#36861;&#21152;&#21040; shell rc &#25991;&#20214;&#20013;&#65288;&#22914;&#26524;&#36825;&#20123;&#25991;&#20214;&#23384;&#22312;&#65289;&#12290;\n  <\/p>\n<p>\n    &#36825;&#20123;&#33050;&#26412;&#40664;&#35748;&#35774;&#32622; <code>SHARP_IGNORE_GLOBAL_LIBVIPS=1<\/code>&#65292;&#20197;&#36991;&#20813; sharp &#38024;&#23545;&#31995;&#32479; libvips &#36827;&#34892;&#26500;&#24314;&#12290;&#33509;&#35201;&#35206;&#30422;&#65306;<\/p>\n<pre><code>```bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}\nSHARP_IGNORE_GLOBAL_LIBVIPS=0 curl -fsSL --proto '=https' --tlsv1.2 https:\/\/openclaw.ai\/install.sh | bash\n```\n<\/code><\/pre>\n<\/p>\n<p>\n    &#23433;&#35013; Git for Windows&#65292;&#37325;&#26032;&#25171;&#24320; PowerShell&#65292;&#28982;&#21518;&#37325;&#26032;&#36816;&#34892;&#23433;&#35013;&#22120;&#12290;\n  <\/p>\n<p>\n    &#36816;&#34892; <code>npm config get prefix<\/code>&#65292;&#24182;&#23558;&#35813;&#30446;&#24405;&#28155;&#21152;&#21040;&#20320;&#30340;&#29992;&#25143; PATH&#65288;Windows &#19978;&#19981;&#38656;&#35201; <code>bin<\/code> &#21518;&#32512;&#65289;&#65292;&#28982;&#21518;&#37325;&#26032;&#25171;&#24320; PowerShell&#12290;\n  <\/p>\n<p>\n    <code>install.ps1<\/code> &#30446;&#21069;&#27809;&#26377;&#25552;&#20379; <code>-Verbose<\/code> &#24320;&#20851;&#12290;<br \/>\n    &#23545;&#20110;&#33050;&#26412;&#32423;&#35786;&#26029;&#65292;&#35831;&#20351;&#29992; PowerShell &#36319;&#36394;&#65306;<\/p>\n<pre><code>```powershell  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}\nSet-PSDebug -Trace 1\n&amp; ([scriptblock]::Create((iwr -useb https:\/\/openclaw.ai\/install.ps1))) -NoOnboard\nSet-PSDebug -Trace 0\n```\n<\/code><\/pre>\n<\/p>\n<p>\n    &#36890;&#24120;&#26159; PATH &#38382;&#39064;&#12290;&#35831;&#21442;&#35265; <a href=\"\/install\/node#troubleshooting\">Node.js &#25925;&#38556;&#25490;&#38500;<\/a>&#12290;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#23433;&#35013;&#22120;&#20869;&#37096;&#26426;&#038;#21046 [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-162","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/comments?post=162"}],"version-history":[{"count":2,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/162\/revisions"}],"predecessor-version":[{"id":797,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/162\/revisions\/797"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}