From 91902740e46c90afb4a7f3113ff0fa5574fb4eb2 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Sun, 19 Jan 2020 19:58:24 +0000 Subject: [PATCH] Attempt to detect out-of-date homebrew-managed vips --- lib/constructor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/constructor.js b/lib/constructor.js index e4a2c94b..2d6ffa24 100644 --- a/lib/constructor.js +++ b/lib/constructor.js @@ -16,6 +16,8 @@ try { help.push('- Ensure the version of Node.js used at install time matches that used at runtime'); } else if (/invalid ELF header/.test(err.message)) { help.push(`- Ensure "${process.platform}" is used at install time as well as runtime`); + } else if (/dylib/.test(err.message) && /Incompatible library version/.test(err.message)) { + help.push('- Run "brew update && brew upgrade vips"'); } else if (/Cannot find module/.test(err.message)) { help.push('- Run "npm rebuild --verbose sharp" and look for errors'); } else {