Improve experience for those using Apple M1 devices #2460

- For Rosetta x64, prevent use of global ARM64 libvips
- For ARM64, improve error message when global libvips not found
This commit is contained in:
Lovell Fuller
2021-02-22 13:49:28 +00:00
parent cc37b59309
commit 4264c0577e
3 changed files with 23 additions and 2 deletions

View File

@@ -60,7 +60,13 @@ Check the output of running `npm install --verbose sharp` for useful error messa
## Apple M1
libvips must currently be installed via Homebrew before installing sharp.
If you are using ARM64 Node.js, which can be checked using:
```sh
node -p "process.arch === 'arm64'"
```
then libvips must currently be installed via Homebrew before installing sharp.
```sh
brew install vips