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 {