I am running node v10.5.0 on a shared hosting.
Calling the resize api produces this error.
Error: glib: Error creating thread: Resource temporarily unavailable
Emitted 'error' event at:
at .../node_modules/sharp/lib/output.js:614:20
Hello, the "shared hosting" service has probably been configured to limit the number of threads you're able to spawn. This is a question for the provider - good luck!
setting the sharp with concurrency(1) resolved this error.