dl-openclaw.is
English
简体中文繁體中文EnglishРусскийفارسی

HomeArticlesInstall

Fixing Node version errors

The most common OpenClaw install errors: Node too old, Node 25 unsupported, pre-releases rejected, npm 12's "blocked because they are not covered by allowScripts", and PowerShell refusing to run scripts. The cause and fix for each.

Updated

Two plug adapters: when plug and socket do not match, the appliance is not the problem
Two plug adapters: when plug and socket do not match, the appliance is not the problem Fructibus, CC0

OpenClaw is written in TypeScript and runs on Node. People who use the official install script rarely hit version problems, because the script installs a suitable Node itself; for those who manage Node themselves and install with npm, most failed installs come down to the points below.

OpenClaw is not picky about Node to be difficult. It keeps state such as sessions, memory and pairing records in SQLite databases, read and written through Node's built-in node:sqlite module. Different Node versions bundle different SQLite builds; some mishandle WAL mode, and some break on special characters in the data, causing anything from a failed start to corrupted data. So it runs a self-check at startup and refuses to run if the check fails, preferring a failed install to damaged data.

The requirements

Node majorStatusMinimumAdvised
26Recommended26.1.026.12.1
24Supported24.16.024.22.1
27Development line27.0.0—
25Not supported—Use 24 or 26
22 and olderNot supported—Upgrade

A few common misunderstandings:

  • Node 25 is not on the support table. Many assume "higher is better" and install 25, which fails. Odd-numbered releases are short-lived; OpenClaw supports the 24 and 26 lines (27 also runs as the development line).
  • Pre-releases of 24 and 26 are rejected, such as versions with -rc.
  • The version number is not the whole story. On startup OpenClaw checks that Node's built-in node:sqlite works properly, requiring a SQLite that handles WAL mode safely. A self-compiled or trimmed-down Node can have an acceptable version number and still fail the check.
A vernier caliper: the requirement is precise down to the minor version, and 24.15 is one notch short of 24.16
A vernier caliper: the requirement is precise down to the minor version, and 24.15 is one notch short of 24.16 Jacek Halicki, CC BY-SA 4.0

Why there is also an "advised" version

In the October 2026 eMudhra incident a set of certificate public keys leaked. Node 24.22.1 and 26.12.1 reject those keys. Versions above the minimum but below these still run OpenClaw, only printing a security warning in the terminal at startup, and openclaw security audit reports it too. OpenClaw will not download Node for you just for this patch; upgrading is your call, but we recommend it.

npm 12 blocked the install scripts

Running npm install -g openclaw@latest with npm 12 shows something like "blocked because they are not covered by allowScripts". That is npm 12's new rule: package install scripts no longer run by default, and OpenClaw needs a few steps before and after installing. The fix is to allow them explicitly:

npm 12 or 11.16 and later
npm install -g openclaw@latest --allow-scripts=openclaw

npm 11.16 knows the option and only warns without it; 11.15 and earlier do not know it, so drop it there. The npm approve-scripts openclaw command that npm 11.16 suggests does not work for global installs and fails with ENOMATCH, so do not bother. pnpm needs --allow-build=openclaw, bun needs --trust.

A wall socket: npm 12 closes the install-script socket by default
A wall socket: npm 12 closes the install-script socket by default Donald Trung Quoc Don, CC BY-SA 4.0

PowerShell says running scripts is disabled

In Windows PowerShell, running openclaw says running scripts is disabled on this system. PowerShell has picked the openclaw.ps1 shim that npm created. Do not change the execution policy; use openclaw.cmd:

Windows PowerShell
openclaw.cmd status

If a tutorial tells you to run Set-ExecutionPolicy Unrestricted or Bypass, it is loosening the security of the whole computer, which is unnecessary.

Troubleshoot it in one pass

  1. Check node -v and paste it into the Node version check.
  2. If it falls short, upgrade Node, or simply switch to the install script and let it handle Node.
  3. Check npm -v to decide whether you need --allow-scripts.
  4. After installing, run openclaw doctor, which checks the runtime once more.

Installing the right Node on each system

  • Windows: download the 26 installer from nodejs.org, or install with winget. Open a new PowerShell afterwards and run node -v.
  • macOS: download the installer from nodejs.org, or install with Homebrew. The system must be 13.5 or later.
  • Linux: many distribution repositories carry an old Node, so a plain apt install may give you 18 or 20. Use nvm, fnm or the NodeSource repository to install 24 or 26.
  • Easiest: install nothing and run the openclaw.ai install script, which handles it.

Error messages and what they mean

What you seeMeaningWhat to do
The Node version does not meet the requirementBelow 24.16 or 26.1, or it is 25Upgrade to 26
A pre-release version is rejectedYou installed an rc or similar pre-releaseSwitch to a release build
The SQLite check failsThe SQLite bundled with Node does not qualifyUse an official Node build
blocked because they are not covered by allowScriptsnpm 12 blocked the install scriptsAdd --allow-scripts=openclaw
ENOMATCH No installed packages matchYou used npm approve-scriptsSkip it and use the option in the row above
Running scripts is disabled on this systemPowerShell picked openclaw.ps1Use openclaw.cmd
A security warning at startupBelow 24.22.1 or 26.12.1Upgrade when you can
I installed a new Node with nvm, but openclaw still uses the old one?

Global packages are installed under a particular Node version. After switching versions, install OpenClaw again and set the default with nvm alias default 26.

I do not want to touch the system Node?

Use install-cli.sh from openclaw.ai. It puts Node and OpenClaw under a local prefix in your home directory without affecting other programs.

Does the Mac menu bar app need me to install Node?

No, the app carries its own runtime. It does need macOS 26.2, which is a separate matter.

Do I need to manage the Node version in the Docker image?

If you follow the Docker setup in the official docs, the image already has a suitable Node. If you write your own Dockerfile, choose a Node 26 release as the base image.

Read next

Also worth reading

Topics on this page: OpenClaw Node version error, OpenClaw npm install failed, allowScripts