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)"

Flag Counter

&copyxgqfrms 2012-2020

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



免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM