#For all those who are getting the error npm error code ENOENT, this is how to solve it:

1 messages · Page 1 of 1 (latest)

noble finch
#

Error:
C:\Windows\System32>curl -fsSL https://openclaw.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

OpenClaw Installer

[OK] Windows detected
[OK] Node.js v22.22.0 found
[*] Installing OpenClaw (openclaw@latest)...
node.exe : npm error code ENOENT
At line:1 char:1 + & "F:\Program Files\nodejs/node.exe" "F:\Program Files\nodejs/node_mo ...
+

+ CategoryInfo : NotSpecified: (npm error code ENOENT:String) [], RemoteException 
+ FullyQualifiedErrorId : NativeCommandError 

C:\Windows\System32>

**Solution**
npm is trying to fetch a dependency via Git, but Git isn’t installed or not on your PATH, so the git process can’t be spawned. That’s why you keep seeing ENOENT.

Install via winget (fastest)
Open **PowerShell** (Admin) and run:

winget install --id Git.Git -e --source winget

Check that Installation is successful:
cmd> git --version

**Install OpenClaw **
CMD> cd %USERPROFILE%
CMD>  curl -fsSL https://openclaw.ai/install.cmd -o install.cmd && install.cmd && del install.cmd