Docs: Update Chinese mirror hostname (#2979)

This commit is contained in:
DSRKafuU 2021-11-17 19:17:37 +08:00 committed by GitHub
parent 079bd7b9f5
commit 602f988aba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
``` ```