Simplify logic to determine installation help

This commit is contained in:
Lovell Fuller
2023-11-06 16:49:53 +00:00
parent 8c5a493f68
commit 074004392c
3 changed files with 67 additions and 58 deletions

View File

@@ -118,11 +118,11 @@ When building your deployment package on a machine that differs from the target
you will need to install either `@img/sharp-linux-x64` or `@img/sharp-linux-arm64` package.
```sh
npm install --os=linux --cpu=x64
npm install --os=linux --cpu=x64 sharp
```
```sh
npm install --os=linux --cpu=arm64
npm install --os=linux --cpu=arm64 sharp
```
When using npm 9 or earlier, this can be achieved using the following: