max下的yarn配置

1. mac升级yarn

brew upgrade yarn

没安装的话,mac安装方法:

brew update
brew install yarn

删除yarn

brew uninstall --force yarn

2. 改为yarn的源,跟npm类似

yarn config get registry
# -> https://registry.yarnpkg.com
yarn config set registry 'https://registry.npm.taobao.org'

然后安装
yarn install

你可能感兴趣的:(max下的yarn配置)