yarn

基于终端装置

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

Yarn was installed, but doesn't seem to be working :(.提醒则进入第2步,持续配置环境变量,否则⬇️
yarn --version校验是否装置胜利,如果command not found: yarn,则持续配置环境变量

2. touch ~/.bash_profile   //touch是没有就创立;.bash_profile这是零碎长期的环境变量    3. sudo open -e ~/.bash_profile //sudo是最大权限,输出明码为锁屏明码

第三部后会弹出 .bash_profile文件框,须要写入path,具体命令依据提醒输出

4. source ~/.bash_profile

yarn --version check~