#NPM Install Taking forever.

1 messages · Page 1 of 1 (latest)

slate imp
#

My Windows NPM install is taking forever to install

turbid owlBOT
wraith aspenBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> âś… Mark Solution

turbid owlBOT
indigo pathBOT
#
openclaw --version
node --version
npm --version

and the exact command you ran?

If openclaw installs but is “not recognized”, check:

npm config get prefix

On Windows that usually needs %AppData%\npm on your PATH.

If the error mentions git not found, install Git for Windows and reopen PowerShell.

#

Ah, yep, that’s the mismatch.

You ran the Linux/WSL installer (install.sh) from native PowerShell. I’d stop that one.

Use one of these instead:

If you’re in native Windows PowerShell:

iwr -useb https://openclaw.ai/install.ps1 | iex

If you specifically want the git install on native Windows PowerShell:

& ([scriptblock]::Create((iwr -useb https://openclaw.ai/install.ps1))) -InstallMethod git

If you want to use install.sh, run it inside WSL2, not PowerShell:

slate imp
indigo pathBOT
#

Yep, that shell is the problem.

You’re in a shell that doesn’t have curl or bash, so the Unix installer cannot run there.

Easiest fix

Go back to Windows PowerShell and run:

iwr -useb https://openclaw.ai/install.ps1 | iex

If you want the git install specifically:

& ([scriptblock]::Create((iwr -useb https://openclaw.ai/install.ps1))) -InstallMethod git
#

So, short version: don’t use that current sh prompt. Use PowerShell + install.ps1 or real WSL Ubuntu + install.sh.

slate imp
#

the powershell one is taking forever again...

indigo pathBOT
#

It normally shouldn’t. The docs say install is usually 2 to 5 minutes.

At this point I’d split install from onboarding, so we can see which part is hanging.

Try this in PowerShell

Set-PSDebug -Trace 1
& ([scriptblock]::Create((iwr -useb https://openclaw.ai/install.ps1))) -NoOnboard
Set-PSDebug -Trace 0

If you want the git path specifically:

Set-PSDebug -Trace 1
& ([scriptblock]::Create((iwr -useb https://openclaw.ai/install.ps1))) -InstallMethod git -NoOnboard
#
Set-PSDebug -Trace 0

Then, if that finishes

openclaw --version
openclaw onboard --install-daemon

If it still hangs

Paste the last few lines it prints. That’ll tell us whether it’s stuck on:

  • installing Node
  • cloning/building git
  • or starting onboarding

If it looks like it’s hanging on Node, install Node first with: