mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 15:25:07 +01:00
Yarn pnp unsupported, use alternative nodeLinker
This commit is contained in:
@@ -53,6 +53,10 @@ try {
|
||||
if (errPackage.code === 'ERR_DLOPEN_DISABLED') {
|
||||
help.push('- Run Node.js without using the --no-addons flag');
|
||||
}
|
||||
if (process.versions.pnp) {
|
||||
help.push('- Use a supported yarn linker, either pnpm or node-modules');
|
||||
help.push(' yarn config set nodeLinker node-modules');
|
||||
}
|
||||
// Link to installation docs
|
||||
if (isLinux && /Module did not self-register/.test(errLocal.message + errPackage.message)) {
|
||||
help.push('- Using worker threads on Linux? See https://sharp.pixelplumbing.com/install#worker-threads');
|
||||
|
||||
Reference in New Issue
Block a user