Environment:
pnpm: v8.7.4
node: v21.2.0
npm: v9.5.0
Description:
Failed to install with pnpm command (pnpm add -D @capacitor/assets)
Cause by sharp v0.32.5 post install script

Soluton proposed:
It seem like sharp has fixed the issue of post install script and release v0.33.0
Upgrade sharp dependecies to v0.33.0
Related Links:
lovell/sharp#3351
lovell/sharp#3750 (comment)