Docs: add section for Apple M1 users #2460

This commit is contained in:
Lovell Fuller 2021-01-06 13:39:47 +00:00
parent d6376c31e0
commit 138e60adb3
3 changed files with 14 additions and 2 deletions

View File

@ -56,6 +56,18 @@ The `npm install --ignore-scripts=false` flag must be used when `npm` has been c
Check the output of running `npm install --verbose sharp` for useful error messages. Check the output of running `npm install --verbose sharp` for useful error messages.
## Apple M1
libvips must currently be installed via Homebrew before installing sharp.
```sh
brew install vips
```
When this new ARM64 CPU is made freely available
to open source projects via a CI service
then prebuilt binaries can be provided.
## 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,

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@ const searchIndex = [];
// Install // Install
const contents = fs.readFileSync(path.join(__dirname, '..', 'install.md'), 'utf8'); const contents = fs.readFileSync(path.join(__dirname, '..', 'install.md'), 'utf8');
const matches = contents.matchAll( const matches = contents.matchAll(
/## (?<title>[A-Za-z ]+)\n\n(?<body>[^#]+)/gs /## (?<title>[A-Za-z0-9 ]+)\n\n(?<body>[^#]+)/gs
); );
for (const match of matches) { for (const match of matches) {
const { title, body } = match.groups; const { title, body } = match.groups;