diff --git a/lib/sharp.js b/lib/sharp.js index c002f844..129b427f 100644 --- a/lib/sharp.js +++ b/lib/sharp.js @@ -77,6 +77,12 @@ if (sharp) { ); } catch (errEngines) {} } + if (isLinux && /\/snap\/core[0-9]{2}/.test(messages)) { + help.push( + '- Remove the Node.js Snap, which does not support native modules', + ' snap remove node' + ); + } if (isMacOs && /Incompatible library version/.test(messages)) { help.push( '- Update Homebrew:',