From c5eaeb2ddbef7fa74fb682c8dc774156d084c053 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Tue, 12 Dec 2023 21:01:09 +0000 Subject: [PATCH] Add help when possibly using an unsupported libc --- lib/sharp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sharp.js b/lib/sharp.js index 129b427f..c7d348d7 100644 --- a/lib/sharp.js +++ b/lib/sharp.js @@ -65,7 +65,7 @@ if (sharp) { ' npm install --force @img/sharp-wasm32' ); } - if (isLinux && /symbol not found/i.test(messages)) { + if (isLinux && /(symbol not found|CXXABI_)/i.test(messages)) { try { const { engines } = require(`@img/sharp-libvips-${runtimePlatform}/package`); const libcFound = `${familySync()} ${versionSync()}`;