NodeBB - Installation fails
Installation fails with error:
2026-01-21 21:15:31,130: DEBUG - Error: Could not load the "sharp" module using the linux-x64 runtime
2026-01-21 21:15:31,130: DEBUG - Unsupported CPU: Prebuilt binaries for linux-x64 require v2 microarchitecture
2026-01-21 21:15:31,131: DEBUG - Possible solutions:
2026-01-21 21:15:31,131: DEBUG - - Ensure optional dependencies can be installed:
2026-01-21 21:15:31,132: DEBUG - npm install --include=optional sharp
2026-01-21 21:15:31,132: DEBUG - - Ensure your package manager supports multi-platform installation:
2026-01-21 21:15:31,133: DEBUG - See https://sharp.pixelplumbing.com/install#cross-platform
2026-01-21 21:15:31,133: DEBUG - - Add platform-specific dependencies:
2026-01-21 21:15:31,133: DEBUG - npm install --os=linux --cpu=x64 sharp
2026-01-21 21:15:31,134: DEBUG - - Consult the installation documentation:
2026-01-21 21:15:31,134: DEBUG - See https://sharp.pixelplumbing.com/install
2026-01-21 21:15:31,135: DEBUG - at Object. (/var/www/nodebb/node_modules/sharp/lib/sharp.js:120:9)
2026-01-21 21:15:31,135: DEBUG - at Module._compile (node:internal/modules/cjs/loader:1706:14)
2026-01-21 21:15:31,136: DEBUG - at Object..js (node:internal/modules/cjs/loader:1839:10)
2026-01-21 21:15:31,136: DEBUG - at Module.load (node:internal/modules/cjs/loader:1441:32)
2026-01-21 21:15:31,136: DEBUG - at Function._load (node:internal/modules/cjs/loader:1263:12)
2026-01-21 21:15:31,137: DEBUG - at TracingChannel.traceSync (node:diagnostics_channel:328:14)
2026-01-21 21:15:31,137: DEBUG - at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
2026-01-21 21:15:31,138: DEBUG - at Module.require (node:internal/modules/cjs/loader:1463:12)
2026-01-21 21:15:31,138: DEBUG - at require (node:internal/modules/helpers:147:16)
2026-01-21 21:15:31,139: DEBUG - at Object. (/var/www/nodebb/node_modules/sharp/lib/constructor.js:10:1)
2026-01-21 21:15:31,149: DEBUG - + ynh_exit_properly
2026-01-21 21:15:31,150: DEBUG - + [[ install =~ ^install$|^upgrade$|^restore$ ]]
2026-01-21 21:15:31,759: ERROR - Unable to install nodebb: An error occurred inside the app installation script
Installing this "sharp" thing doesn't help. Says
found 0 vulnerabilities but won't install NodeBB.
I raised a GitHub issue yet.