斐浦软件 - 安装Yarn

命令

sudo npm install -g yarn
yarn --version

修改Yarn源

yarn config set registry https://registry.npmmirror.com 
yarn config set registry https://registry.yarnpkg.com

yarn config set sass_binary_site https://npmmirror.com/mirrors/node-sass/ 
yarn config set phantomjs_cdnurl http://cnpmjs.org/downloads 
yarn config set electron_mirror https://npmmirror.com/mirrors/electron/ 
yarn config set sqlite3_binary_host_mirror https://foxgis.oss-cn-shanghai.aliyuncs.com/ 
yarn config set profiler_binary_host_mirror https://npmmirror.com/mirrors/node-inspector/ 
yarn config set chromedriver_cdnurl https://cdn.npmmirror.com/dist/chromedriver

备用

yarn install
yarn install --pure-lockfile 
yarn config set ignore-engines true


此文档对你有帮助?

本页