mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
Docs: add section for Apple M1 users #2460
This commit is contained in:
parent
d6376c31e0
commit
138e60adb3
@ -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
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user