xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

yarn & macOS & upgrade

yarn & macOS

https://yarnpkg.com/zh-Hans/docs/install#mac-stable

$ brew install yarn

$ brew upgrade yarn

$ yarn --version

配置文件

.profile、.bash_profile、.bashrc、.zshrc

export PATH="$PATH:/opt/yarn-[version]/bin"

export PATH="$PATH:`yarn global bin`" 

https://github.com/yarnpkg/yarn/

bash install

$ curl -o- -L https://yarnpkg.com/install.sh | bash


$ curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version [version]

upgrade

nvm

$ brew install yarn --without-node

https://github.com/nvm-sh/nvm

https://brew.sh/

ruby

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


posted @ 2019-05-27 00:12  xgqfrms  阅读(396)  评论(9编辑  收藏  举报