sorry but can you give a little more info. whats does it meen install build tools.
i also have such error. i made as console log suggect
npm install --ignore-scripts=false --foreground-scripts --verbose sharp
but still couldn’t install sharp
npm info run sharp@0.32.1 install { code: 1, signal: null }
npm verb stack Error: command failed
npm verb stack at ChildProcess. (/opt/alt/alt-nodejs18/root/usr/lib/node_modules/npm/node_modules.bundled/@npmcli/promise-spawn/lib/index.js:53:27)
npm verb stack at ChildProcess.emit (node:events:513:28)
npm verb stack at maybeClose (node:internal/child_process:1091:16)
npm verb stack at ChildProcess._handle.onexit (node:internal/child_process:302:5)
npm verb pkgid sharp@0.32.1