#NPM Install Failed

1 messages · Page 1 of 1 (latest)

raven estuary
#

Hi everyone, can anyone help me with this, i use Macbook M1 and try instaling with 1 one-liner code provided in the website, but it keep says npm failed to install.

How can i fix this? thank you so much

onyx citrus
#

Exact same issue here bro

torpid parrotBOT
#

Hey WΞSSIΞ! 👋 This is usually the Matrix plugin issue. The fix:

Install pnpm first:

# Enable corepack (comes with Node.js)
corepack enable

# Install pnpm
corepack install -g pnpm

Then install dependencies in the plugin folder:

cd ~/.clawdbot/extensions/matrix
pnpm install
#

The plugin's package.json uses workspace:* protocol - npm can't handle that, only pnpm can. Let me know if that resolves it! 🦐

torpid parrotBOT
# onyx citrus Exact same issue here bro

Done! 🦐 I've responded to WΞSSIΞ in the #NPM Install Failed channel.

The issue: Matrix plugin uses workspace:* dependency protocol which only pnpm supports, not npm.

Solution sent:

  1. Install pnpm via corepack
  2. Run pnpm install in ~/.clawdbot/extensions/matrix

This is the same fix that resolved SleepingShell's issue earlier.

onyx citrus
#

Thanks Krill! Ill; try it out and let you know

torpid parrotBOT
#

Sounds good! 👍 Let me know how it goes or if you hit any snags. Happy to help! 🦐

torpid parrotBOT
onyx citrus
torpid parrotBOT
#

Try with sudo:

sudo corepack enable
sudo corepack install -g pnpm

Alternative (no sudo needed): Install pnpm globally via npm:

sudo npm install -g pnpm

Or if you want to avoid sudo entirely, use npx to run pnpm directly:

#
npx pnpm install

Let me know which works on your VM! 🦐

torpid parrotBOT
onyx citrus
torpid parrotBOT
#

Great! 🎉 Now finish it off:

sudo corepack install -g pnpm
cd ~/.clawdbot/extensions/matrix
pnpm install

Then run clawdbot doctor to verify the Matrix plugin loads correctly! 🦐

torpid parrotBOT
# onyx citrus sudo corepack enable seems to work.

Nice! Progress! 💪 Now they just need to:

  1. Install pnpm: sudo corepack install -g pnpm
  2. Install dependencies: cd ~/.clawdbot/extensions/matrix && pnpm install
  3. Verify: clawdbot doctor

Let me know how it goes! 🦐

onyx citrus
torpid parrotBOT
#

Right - the plugin directory doesn't exist because the install failed earlier.

Step 1: Install the plugin first:

clawdbot plugins install @clawdbot/matrix

This will download and extract it to ~/.clawdbot/extensions/matrix

Step 2: Then install dependencies:

cd ~/.clawdbot/extensions/matrix
pnpm install

Let me know if the plugin install step succeeds! 🦐

torpid parrotBOT
# onyx citrus that path does not exist for the cd

Got it! The plugin directory doesn't exist because the install failed earlier. Now with pnpm available, the clawdbot plugins install @clawdbot/matrix command should succeed and properly install the dependencies. Let me know how it goes! 🦐

radiant forum
radiant forum
torpid parrotBOT
#

Hey WΞSSIΞ 👋 Any update? Did the plugin install work after you ran clawdbot plugins install @clawdbot/matrix?

SleepingShell here got it working earlier with the same pnpm fix! 🦐

torpid parrotBOT
torpid parrotBOT
#

Ah, right! You ran into the pnpm not found issue. Did you get pnpm installed?

# Check if pnpm is available
pnpm --version

If not installed, try:

# Option 1: Via npm (with sudo)
sudo npm install -g pnpm

# Option 2: Via corepack (with sudo)
sudo corepack enable
sudo corepack install -g pnpm
#

Once pnpm is installed, then:

cd ~/.clawdbot/extensions/matrix
pnpm install

What's the status on your end? 🦐

torpid parrotBOT
# radiant forum I DID NOT get it working

Ah, neither of you have fully resolved it yet! Both got blocked on installing pnpm. Let me know what happens when you try the install commands above, and I'll help you both get past this hurdle! 🦐

radiant forum
# torpid parrot Ah, neither of you have fully resolved it yet! Both got blocked on installing pn...
clawdbot@Mac matrix % pnpm install
node:internal/modules/cjs/loader:1386
  throw err;
  ^

Error: Cannot find module '/Users/clawdbot/.cache/node/corepack/v1/pnpm/11.0.0-dev.1005/bin/pnpm.cjs'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1383:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)
    at Module._load (node:internal/modules/cjs/loader:1192:37)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
    at executeUserEntryPoint (node:internal/modules/run_main:171:5)
    at process.processTicksAndRejections (node:internal/process/task_queues:89:21) {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v22.22.0
clawdbot@Mac matrix % corepack disable pnpm
clawdbot@Mac matrix % corepack enable pnpm
clawdbot@Mac matrix % corepack prepare pnpm@latest --activate
Preparing pnpm@latest for immediate activation...
clawdbot@Mac matrix % pnpm -v
10.28.2
clawdbot@Mac matrix % rm -rf ~/.cache/node/corepack/v1/pnpm/ 
clawdbot@Mac matrix % pnpm install                           
! Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-10.28.2.tgz
? Do you want to continue? [Y/n] 

 ERR_PNPM_WORKSPACE_PKG_NOT_FOUND  In : "clawdbot@workspace:*" is in the dependencies but no package named "clawdbot" is present in the workspace

This error happened while installing a direct dependency of /Users/clawdbot/.clawdbot/extensions/matrix

Packages found in the workspace: 
clawdbot@Mac matrix %```
torpid parrotBOT
#

Hey Flowy! 👋 Same issue - the Matrix plugin uses workspace:* protocol which npm can't handle. You need pnpm.

Quick fix:

# Install pnpm (with sudo)
sudo npm install -g pnpm

# Then install the plugin
clawdbot plugins install @clawdbot/matrix

# Or if already downloaded, install dependencies:
cd ~/.clawdbot/extensions/matrix
pnpm install

Let me know if you hit any snags! 🦐

#

Got it! Flowy is now also in the same boat. 🔥 The Matrix plugin issue is spreading!

The pattern: npm install fails because the plugin uses workspace:* protocol → need pnpm instead.

Let me know if you, WΞSSIΞ, or Flowy get stuck anywhere! 🦐

slow spoke
#

npm error code EEXIST
npm error path /usr/local/bin/pnpm
npm error EEXIST: file already exists
npm error File exists: /usr/local/bin/pnpm
npm error Remove the existing file and try again, or run npm
npm error with --force to overwrite files recklessly.
npm error A complete log of this run can be found in: /Users/simon/.npm/_logs/2026-01-28T02_26_24_112Z-debug-0.log
simon@crc-dot1x-nat-10-239-149-205 ~ %

slow spoke
torpid parrotBOT
slow spoke
torpid parrotBOT
slow spoke
torpid parrotBOT
# slow spoke ERR_PNPM_WORKSPACE_PKG_NOT_FOUND  In : "clawdbot@workspace:*" is in the dependen...

Ah! The npm package has workspace:* protocol which is problematic when installing standalone. You need to install from local source (since you have clawdbot installed):

# If you have the clawdbot repo locally
clawdbot plugins install /path/to/your/clawdbot/extensions/matrix

# Or find where your global install is
# Then install from there

Where is your clawdbot installed globally? Check:

which clawdbot
# Likely /opt/homebrew/lib/node_modules/clawdbot/ or similar

Then:

#
clawdbot plugins install /opt/homebrew/lib/node_modules/clawdbot/extensions/matrix

This bypasses the npm package entirely and uses the local source (which has the proper workspace setup). Let me know what path you find! 🦐

slow spoke
torpid parrotBOT