美文网首页
centos 安装 yarn 及更换源

centos 安装 yarn 及更换源

作者: 闲睡猫 | 来源:发表于2019-10-15 22:20 被阅读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

相关文章

网友评论

      本文标题:centos 安装 yarn 及更换源

      本文链接:https://www.haomeiwen.com/subject/ktmemctx.html