Skip to content

Commit

Permalink
Docs: add example of multi-arch within same install tree
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed Jun 10, 2022
1 parent f903e14 commit b10d8f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@ use the following flags:
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

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

0 comments on commit b10d8f8

Please sign in to comment.