Skip to content

Commit

Permalink
Install: add help for possible worker thread problem #3268
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed Jun 21, 2022
1 parent 8bb30d7 commit 853a203
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/sharp.js
Expand Up @@ -12,6 +12,9 @@ try {
help.push('- Update Homebrew: "brew update && brew upgrade vips"');
} else {
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(
'- 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"`
Expand Down

0 comments on commit 853a203

Please sign in to comment.