mirror of
https://github.com/lovell/sharp.git
synced 2025-07-10 19:10:14 +02:00
Docs: add example of multi-arch within same install tree
This commit is contained in:
parent
f903e1465e
commit
b10d8f89ca
@ -98,6 +98,14 @@ use the following flags:
|
|||||||
npm install --arch=x64 --platform=linux --libc=glibc sharp
|
npm install --arch=x64 --platform=linux --libc=glibc sharp
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Multiple platforms and architectures can be supported within the same installation tree.
|
||||||
|
The following example for macOS installs x64 binaries then adds (via a rebuild) arm64 binaries:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm install --platform=darwin --arch=x64 sharp
|
||||||
|
npm rebuild --platform=darwin --arch=arm64 sharp
|
||||||
|
```
|
||||||
|
|
||||||
## Custom libvips
|
## Custom libvips
|
||||||
|
|
||||||
To use a custom, globally-installed version of libvips instead of the provided binaries,
|
To use a custom, globally-installed version of libvips instead of the provided binaries,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user