I had this problem as well, also impacted image uploading in messages.
First updated to the newest nodebb release (1.11.0) and Node.js stable @ (11.2).
Tried to downgrade Node.js back to (10.12) with no love.
Returned to Node.js stable (11.2), and fixed by simply building sharp locally.
npm install --build-from-source sharp
Cheers
Anjin