mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Docs: Update Chinese mirror hostname (#2979)
This commit is contained in:
parent
079bd7b9f5
commit
602f988aba
@ -147,16 +147,16 @@ A mirror site based in China, provided by Alibaba, contains binaries for both sh
|
|||||||
To use this either set the following configuration:
|
To use this either set the following configuration:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm config set sharp_binary_host "https://npm.taobao.org/mirrors/sharp"
|
npm config set sharp_binary_host "https://npmmirror.com/mirrors/sharp"
|
||||||
npm config set sharp_libvips_binary_host "https://npm.taobao.org/mirrors/sharp-libvips"
|
npm config set sharp_libvips_binary_host "https://npmmirror.com/mirrors/sharp-libvips"
|
||||||
npm install sharp
|
npm install sharp
|
||||||
```
|
```
|
||||||
|
|
||||||
or set the following environment variables:
|
or set the following environment variables:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm_config_sharp_binary_host="https://npm.taobao.org/mirrors/sharp" \
|
npm_config_sharp_binary_host="https://npmmirror.com/mirrors/sharp" \
|
||||||
npm_config_sharp_libvips_binary_host="https://npm.taobao.org/mirrors/sharp-libvips" \
|
npm_config_sharp_libvips_binary_host="https://npmmirror.com/mirrors/sharp-libvips" \
|
||||||
npm install sharp
|
npm install sharp
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user