mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user