Skip to content

Commit b10d8f8

Browse files
committed
Docs: add example of multi-arch within same install tree
1 parent f903e14 commit b10d8f8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docs/install.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@ use the following flags:
9898
npm install --arch=x64 --platform=linux --libc=glibc sharp
9999
```
100100

101+
Multiple platforms and architectures can be supported within the same installation tree.
102+
The following example for macOS installs x64 binaries then adds (via a rebuild) arm64 binaries:
103+
104+
```sh
105+
npm install --platform=darwin --arch=x64 sharp
106+
npm rebuild --platform=darwin --arch=arm64 sharp
107+
```
108+
101109
## Custom libvips
102110

103111
To use a custom, globally-installed version of libvips instead of the provided binaries,

0 commit comments

Comments
 (0)