mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Attempt to detect out-of-date homebrew-managed vips
This commit is contained in:
parent
6aa6a93b44
commit
91902740e4
@ -16,6 +16,8 @@ try {
|
|||||||
help.push('- Ensure the version of Node.js used at install time matches that used at runtime');
|
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)) {
|
} else if (/invalid ELF header/.test(err.message)) {
|
||||||
help.push(`- Ensure "${process.platform}" is used at install time as well as runtime`);
|
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)) {
|
} else if (/Cannot find module/.test(err.message)) {
|
||||||
help.push('- Run "npm rebuild --verbose sharp" and look for errors');
|
help.push('- Run "npm rebuild --verbose sharp" and look for errors');
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user