关于macos:MAC软件安装

2次阅读

共计 370 个字符,预计需要花费 1 分钟才能阅读完成。

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~

正文完
 0