Wrong package manager
A root npm install does not prepare the pnpm workspace or bundled extensions. Use pnpm for the official source tree.
Installation intent
A source checkout is the right path when you want to contribute, test a specific revision, or develop against the OpenClaw workspace. Most users should choose the official installer instead.
git clone https://github.com/openclaw/openclaw.git
cd openclawpnpm installDo not substitute a root npm install. The official README states that the source tree is a pnpm workspace.
pnpm build
pnpm ui:buildpnpm link --global
openclaw onboard --install-daemon
openclaw gateway status
openclaw dashboardReproducible setup
The main branch changes as development continues. For a reproducible environment, choose a published release or an exact commit after reading its notes and diff.
git fetch --tags
git tag --sort=-version:refname
git checkout <trusted-release-tag>
git status
git pull --ff-only
pnpm install
pnpm build
pnpm ui:build
pnpm link --global
openclaw gateway restart
Review upstream changes before updating a production assistant. If you have local source edits, commit them on a separate branch rather than mixing them into the upstream branch.
A root npm install does not prepare the pnpm workspace or bundled extensions. Use pnpm for the official source tree.
Check the current requirements in the official install guide; version floors can change as OpenClaw evolves.
Run the global link step again and confirm which openclaw executable your shell resolves.
Restart the Gateway that actually serves your channels, then verify its status before testing features.