centos 安装 yarn 及更换源

2019-10-15  本文已影响0人  闲睡猫

安装

根据官方文档操作:

$ curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
$ sudo yum install yarn -y
$ yarn --version
1.19.1

换源

$ yarn config set registry https://registry.npm.taobao.org/
$ yarn config get registry
https://registry.npm.taobao.org/

原文:https://www.itshutong.com/349.html

上一篇 下一篇

猜你喜欢

热点阅读