After initial Peertube installation, I get this in the logs:
error: uncaughtException: Could not load the "sharp" module using the linux-x64 runtime
Unsupported CPU: Prebuilt binaries for linux-x64 require v2 microarchitecture
Possible solutions:
Ensure optional dependencies can be installed:
npm install --include=optional sharp
Ensure your package manager supports multi-platform installation:
See https://sharp.pixelplumbing.com/install#cross-platform
Add platform-specific dependencies:
npm install --os=linux --cpu=x64 sharp
Consult the installation documentation:
See https://sharp.pixelplumbing.com/install
I tried
pnpm install --include=optional sharp
and restarted the Peertube daemon, but got the same error as before. I also tried
pnpm install --os=linux --cpu=x64 sharp
Already up to date
Progress: resolved 31, reused 9, downloaded 0, added 0, done
Done in 530ms using pnpm v10.32.1
Using Peertube v8.1.2, Debian 12