#Just updated from main branch, getting following error

1 messages · Page 1 of 1 (latest)

candid valley
#

/home/rtek99/genai/openclaw/extensions/acpx:
 ERR_PNPM_WORKSPACE_PKG_NOT_FOUND  In extensions/acpx: "@openclaw/plugin-sdk@workspace:*" is in the dependencies but no package named "@openclaw/plugin-sdk" is present in the workspace

This error happened while installing a direct dependency of /home/rtek99/genai/openclaw/extensions/acpx

Packages found in the workspace:

errant craterBOT
slow muskBOT
#

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

errant craterBOT
candid valley
#

@alpine kelp even bot takes time off?

candid valley
#

ERR_PNPM_WORKSPACE_PKG_NOT_FOUND  In extensions/acpx: "@openclaw/plugin-sdk@workspace:*" is in the dependencies but no package named "@openclaw/plugin-sdk" is present in the workspace

alpine kelpBOT
#

Let me check the repo layout around acpx, because that error usually means the workspace package list and the dependency name stopped matching.

#

I found @openclaw/plugin-sdk in current main, so this is probably not “acpx depends on a package that no longer exists”. It looks more like pnpm isn’t seeing the workspace correctly on Joe’s machine.

#

I checked current main, and @openclaw/plugin-sdk does exist in the workspace at packages/plugin-sdk.

So this is probably a local workspace detection issue, not a real missing package in main.

Please paste these from the repo root, not extensions/acpx:

openclaw --version
node -v
pnpm -v
git rev-parse --short HEAD
pwd
ls packages/plugin-sdk/package.json
git sparse-checkout list || true

Then try:

#

Paste the outputs and I’ll help narrow it down fast.

candid valley
#

rtek99@msi:~/genai/openclaw$ openclaw --version
openclaw: command not found
rtek99@msi:~/genai/openclaw$ node -v
v24.14.1
rtek99@msi:~/genai/openclaw$ pnpm -v
10.33.0
rtek99@msi:~/genai/openclaw$ git rev-parse --short HEAD
7e16e3d077
rtek99@msi:~/genai/openclaw$ pwd
/home/rtek99/genai/openclaw
rtek99@msi:~/genai/openclaw$ ls packages/plugin-sdk/package.json
ls: cannot access 'packages/plugin-sdk/package.json': No such file or directory
rtek99@msi:~/genai/openclaw$ git sparse-checkout list || true
fatal: this worktree is not sparse
rtek99@msi:~/genai/openclaw$

alpine kelpBOT
#

That narrows it down a lot: your checkout really does not have packages/plugin-sdk, so pnpm is telling the truth. Let me check what that commit should contain.

#

Yep, that’s the root cause.

Your checkout is missing packages/plugin-sdk, but extensions/acpx now depends on it. So the repo on disk is in an incomplete / inconsistent state.

Two useful notes:

  • openclaw: command not found is not the main issue here, since you’re running from source.
  • pnpm and node versions look fine.

Safest fix: fresh clone of main, then install from the repo root:

git clone https://github.com/openclaw/openclaw.git
cd openclaw
pnpm install
pnpm build
pnpm ui:build
candid valley
#

what is the command to cleanup all the packages that i download

alpine kelpBOT
#

If you mean pnpm-downloaded packages, the cleanup command is:

pnpm store prune

If you want a full local reset of this checkout:

find . -name node_modules -type d -prune -exec rm -rf '{}' +
pnpm install

If you want to wipe the entire pnpm store too, that’s the nuclear option: