mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Install: add help for possible worker thread problem #3268
This commit is contained in:
parent
8bb30d7801
commit
853a20358e
@ -12,6 +12,9 @@ try {
|
|||||||
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('-');
|
const [platform, arch] = platformAndArch.split('-');
|
||||||
|
if (platform === 'linux' && /Module did not self-register/.test(err.message)) {
|
||||||
|
help.push('- Using worker threads? See https://sharp.pixelplumbing.com/install#worker-threads');
|
||||||
|
}
|
||||||
help.push(
|
help.push(
|
||||||
'- Install with verbose logging and look for errors: "npm install --ignore-scripts=false --foreground-scripts --verbose sharp"',
|
'- Install with verbose logging and look for errors: "npm install --ignore-scripts=false --foreground-scripts --verbose sharp"',
|
||||||
`- Install for the current ${platformAndArch} runtime: "npm install --platform=${platform} --arch=${arch} sharp"`
|
`- Install for the current ${platformAndArch} runtime: "npm install --platform=${platform} --arch=${arch} sharp"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user