Skip to content

[Bug]: install on windows #25282

@liuche20083736

Description

@liuche20083736

Summary

I have tried npm install and pnpm install .
It has same error:

(1)
npm install -g openclaw@latest
npm error path D:\program\node\node-v24.13.0-win-x64\node_modules\openclaw\node_modules\sharp
npm error command failed
npm error command powershell -c node install/check.js || npm run build
npm error ����λ�� ��:1 �ַ�: 23
npm error + node install/check.js || npm run build
npm error + ~~
npm error ��ǡ�||�����Ǵ˰汾�е���Ч���ָ�����
npm error + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
npm error + FullyQualifiedErrorId : InvalidEndOfLine
npm error A complete log of this run can be found in: C:\Users\pc\AppData\Local\npm-cache_logs\2026-02-24T09_51_44_913Z-debug-0.log

(2)
PS D:\program\code\openclaw> pnpm install
Scope: all 35 workspace projects
Lockfile is up to date, resolution step is skipped
Packages: +991
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 991, reused 990, downloaded 0, added 990, done
node_modules/.pnpm/@matrix-org+matrix-sdk-crypto-nodejs@0.4.0/node_modules/@matrix-org/matrix-sdk-crypto-nodejs: Running postinstall script...
node_modules/.pnpm/sharp@0.34.5/node_modules/sharp: Running install script, failed in 1.8s
.../sharp@0.34.5/node_modules/sharp install$ node install/check.js || npm run build
│ ����λ�� ��:1 �ַ�: 23
│ + node install/check.js || npm run build
│ + ~~
│ ��ǡ�||�����Ǵ˰汾�е���Ч���ָ�����
│ + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
│ + FullyQualifiedErrorId : InvalidEndOfLine

└─ Failed in 1.8s at D:\program\code\openclaw\node_modules.pnpm\sharp@0.34.5\node_modules\sharp
node_modules/.pnpm/node-llama-cpp@3.15.1_typescript@5.9.3/node_modules/node-llama-cpp: Running postinstall script...
 ELIFECYCLE  Command failed with exit code 1.

(3)
then i tried iwr method , it shows below error.

PS C:\WINDOWS\system32> iwr -useb https://openclaw.ai/install.ps1 | iex

OpenClaw Installer

[OK] Windows detected
[] Existing OpenClaw installation detected
[OK] Node.js v24.13.0 found
[
] Installing OpenClaw (openclaw@latest)...
node.exe : npm error code 1
D:\program\node\node-v24.13.0-win-x64\npm.ps1:16 : 5

  • & "$basedir/node$exe"  "$basedir/node_modules/npm/bin/npm-cli.js" ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (npm error code 1:String) [], RemoteException
    • FullyQualifiedErrorId : NativeCommandError

please resolve the issuse .

Steps to reproduce

  1. follow the doc https://docs.openclaw.ai/install
  2. use Installer script method
  3. use npm/pnpm method
  4. use from-source method

all the mehods could't install on windows

Expected behavior

please resolve the issuse

Actual behavior

please resolve the issuse

OpenClaw version

2026.2.23

Operating system

windows 11

Install method

npm & pnpm & Installer script & from-source

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleMarked as stale due to inactivity

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions