ai16z / eliza

Conversational Agent for Twitter and Discord
https://ai16z.github.io/eliza/
MIT License
593 stars 182 forks source link

pnpm install fails on Ubuntu #215

Open lo-zed opened 6 days ago

lo-zed commented 6 days ago

Describe the bug

Installation fails

To Reproduce

pnpm i

Expected behavior

Installs without error.

Additional context

OS: Ubuntu 24.04 LTS node: v22.10.1 pnpm: 9.12.3

An example of error I get:

node_modules/sharp install$ (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
└─ Failed in 283ms at /home/ubuntu/eliza/node_modules/sharp

Happens with @discordjs/opus & onnxruntime-node too, maybe others.

But if I go into the directory and install from there it works:

cd node_modules/sharp
npm install

This doesn't throw any error and installs the package correctly.

Is this a bug on pnpm side?

Sid31 commented 5 days ago

Did you try pnpm install --include=optional sharp ?

lo-zed commented 5 days ago

yes, same error unfortunately

lo-zed commented 10 hours ago

issue created at pnpm repo too: https://github.com/pnpm/pnpm/issues/8737