1. Install Homebrew

My computer has long ago installed homebrew, this is equivalent to update the domestic mirror and installation tutorial: mirror.tuna.tsinghua.edu.cn/help/homebr…

2. Update necessary software through Homebrew

brew install git
brew install curl
brew install openssl
brew install node 
brew install yarn
Copy the code

3. Homebrew Cask

As for Homebrew Cask, it is a set of OS X software installation command-line tools built on top of Homebrew and is an extension of Homebrew.

sspai.com/post/32857

Note that the usage of Homebrew Cask is not the same as described above. Brew install –cask

Iterm2. app command line tool

Mac comes with Terminal, but iTerm2 does smell better. Detailed usage reference: lhajh. Making. IO/MAC / 2018/04…

5. VS Code

Simplified Chinese plugin: Git Easy 插件 font: auto save –> onFocusChange Json –> Add “editor.fontLigatures”: False, (end comma must not be less)

Emmet: Suitable for quick HTML generation

! + TAB: quickly generate HTML emmet wrap: Generate multiple elements to wrap current content ul>li* Generate one UL and multiple LiCopy the code

Shortcut:

CMD + f: find the keyword in the current file CMD + P: Find the file name in the directory CMD + Shift + P: quickly enter the command Alt + click: Enter multiple positions (press Esc to exit)Copy the code

About how to use in the command line tools code open vs:code.visualstudio.com/docs/setup/…

6. Node.js

Node12 is already installed on the computer. Uninstall it for upgrade 14. I. Brew uninstall YARN II. Uninstall node: see juejin.cn/post/684490… Iii. Install node 14 iv. Reinstall YARN

7. Add a PATH for Mac

Touch ~/. Bashrc add a line export PATH=” new PATH :$PATH” to ~/. Bashrc. Go to Step 1 and do it again. The final bashrc file looks something like this:

export PATH="/path/1/:$PATH"
export PATH="/path/2/:$PATH"
Copy the code

8. nrm

NPM I – g NRM taobao mirror: NPM NRM I – g – registry at https://registry.npm.taobao.org

NRM --version # verify the installed version NRM ls NRM use Taobao #Copy the code

9. npm

npm i -g http-server
/usr/local/bin/hs -> /usr/local/lib/node_modules/http-server/bin/http-server
/usr/local/bin/http-server -> /usr/local/lib/node_modules/http-server/bin/http-server
Copy the code

10.yrm

Check the Registry through yarn Config List. If it is not a Taobao image, install yRM

yarn global add yrm
yrm ls
yrm use taobao
Copy the code