mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Install: include platformAndArch in help after failure
This commit is contained in:
parent
2b8e4d20de
commit
96992845ed
@ -11,9 +11,10 @@ try {
|
|||||||
if (/dylib/.test(err.message) && /Incompatible library version/.test(err.message)) {
|
if (/dylib/.test(err.message) && /Incompatible library version/.test(err.message)) {
|
||||||
help.push('- Update Homebrew: "brew update && brew upgrade vips"');
|
help.push('- Update Homebrew: "brew update && brew upgrade vips"');
|
||||||
} else {
|
} else {
|
||||||
|
const [platform, arch] = platformAndArch.split('-');
|
||||||
help.push(
|
help.push(
|
||||||
'- Install with the --verbose flag and look for errors: "npm install --ignore-scripts=false --verbose sharp"',
|
'- 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(
|
help.push(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user