mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Yarn pnp unsupported, use alternative nodeLinker
This commit is contained in:
parent
4b028edfe9
commit
9b5eecba8f
@ -5,13 +5,15 @@ npm install sharp
|
|||||||
```
|
```
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
yarn add sharp
|
pnpm add sharp
|
||||||
```
|
```
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
pnpm add sharp
|
yarn add sharp
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Yarn Plug'n'Play is unsupported.
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
* Node.js >= 18.17.0
|
* Node.js >= 18.17.0
|
||||||
|
@ -53,6 +53,10 @@ try {
|
|||||||
if (errPackage.code === 'ERR_DLOPEN_DISABLED') {
|
if (errPackage.code === 'ERR_DLOPEN_DISABLED') {
|
||||||
help.push('- Run Node.js without using the --no-addons flag');
|
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
|
// Link to installation docs
|
||||||
if (isLinux && /Module did not self-register/.test(errLocal.message + errPackage.message)) {
|
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');
|
help.push('- Using worker threads on Linux? See https://sharp.pixelplumbing.com/install#worker-threads');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user