diff --git a/lib/sharp.js b/lib/sharp.js index 3fd03785..4a4dd22c 100644 --- a/lib/sharp.js +++ b/lib/sharp.js @@ -11,9 +11,10 @@ try { if (/dylib/.test(err.message) && /Incompatible library version/.test(err.message)) { help.push('- Update Homebrew: "brew update && brew upgrade vips"'); } else { + const [platform, arch] = platformAndArch.split('-'); help.push( '- Install with the --verbose flag and look for errors: "npm install --ignore-scripts=false --verbose sharp"', - `- Install for the current runtime: "npm install --platform=${process.platform} --arch=${process.arch} sharp"` + `- Install for the current ${platformAndArch} runtime: "npm install --platform=${platform} --arch=${arch} sharp"` ); } help.push(