Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

bin-wrapper-china

best-shot6.8kMIT0.1.0

Binary mirror download link replacement for mainland China

bin, check, local, wrapper, mirror, china

readme

bin-wrapper-china

Binary mirror download link replacement for mainland China.

Fork from bin-wrapper.

Install

Use yarn to replace bin-wrapper.

// package.json
{
    "resolutions": {
        "bin-wrapper": "npm:bin-wrapper-china"
    }
}
yarn install

API

Same as bin-wrapper.

Inject mirror url to process.env

// package.json
{
    "scripts": {
        "preinstall": "china-bin-env"
    }
}

https://github.com/cnpm/binary-mirror-config