Skip to content

ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND  in global tools (openclaw etc.) #11291

@EnochxynL

Description

@EnochxynL

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

10.33.0

Which area(s) of pnpm are affected? (leave empty if unsure)

Dependencies resolver

Link to the code that reproduces this issue or a replay of the bug

don't need

Reproduction steps

ANOTHER DETAILED DESCRIPTION is mentioned in #4645 (comment) and the solution there is to deprecate PNPM and switch to the BUN.

Here is my bug description.

I installed pnpm with following commands from https://pnpm.io/installation:

curl -fsSL https://get.pnpm.io/install.sh | sh -

pnpm env use --global lts

Then installed openclaw with pnpm (documentation at https://docs.openclaw.ai/install):

pnpm add -g openclaw@latest
pnpm approve-builds -g
openclaw onboard --install-daemon

Describe the Bug

Then I tried running openclaw openclaw onboard --install-daemon. What I got is only a error message:

 ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND  No package.json (or package.yaml, or package.json5) was found in "/home/enoch".

My username is enoch. This is my home directory.

Expected Behavior

Run openclaw application properly. It succeeded only in ~/.local/share/pnpm/global/5 (change working directory by cd there and then run openclaw), but I couldn't satisfy with that case.

I checked my .bashrc and found PATH had been successfully added in.

# pnpm
export PNPM_HOME="/home/enoch/.local/share/pnpm"
case ":$PATH:" in
  *":$PNPM_HOME:"*) ;;
  *) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end

After reading #4645 (comment), I can confirm that this is a bug. I posted a Q&A in https://github.com/orgs/pnpm/discussions/11289 before.

Which Node.js version are you using?

24.15.0

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

Ubuntu Studio 24.04.4

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions