background

I have been developing the front end for 4.5 years. The first two years of development have been using Windows system. The first time I touched MacBook Pro was in May 2018 when I joined my former employer. The following use, let me flounder, because I do not know how to use, from boot, download the program, close the browser to switch, move, vim and so on… In short, a mess, all kinds of advice, all kinds of chat, fortunately, the company god took the trouble to teach hand in hand, from the system preference Settings, to viM use, and then to the common software/common configuration, finally I can get started. However, the problem came. In April 2020, I left my former employer and came to my current employer. I also bought a MacBook Pro, only to find that I did not know how to configure it. As a result, fell into a variety of installation errors in the circle.

How to choose computer configuration

I was worried about which configuration to choose before purchasing, and finally chose 13.3-inch 16+256 based on the following points, for reference only: 1. Size: 13.3-inch is recommended for carrying back and forth. I need to take my computer to and from work, so I choose 13.3-inch for convenient carrying. Front-end developer don’t need too much at the same time open resources, 8 g actually already enough, consider that the memory can’t add, use fixed number of year is not short, so in the end choose 16 gb, disk: I do not play games, don’t put other large software, don’t save a lot of pictures/music/video, 256 enough to use, if not enough, behind can cloud storage/increase disk, etc. 4, the price: 13.3 “16+256 use education discount 14.4K,16” the most basic configuration 16+512 to 17.5K, if you do not consider the budget, it is recommended to choose 16 “,16 “feeling is really cool, cost-effective, I mainly budget is not enough, too poor diaos.

When I got my computer

1, check the computer, don’t think that’s official website to buy is no problem, I bought two, just take it for the first time, feel like a change, back off the two screws, to return, to choose and buy 2, 3 commonly used software installation, buy green converter, computer cases 4, start working, they they they they breaks down

Problems encountered during installation

Install git

Homebrew installation error:

Failed to connect to raw.githubusercontent.com port 443: Connection refused error 
Copy the code

Brew install git, install git, install git

Install the NVM

Installation method:

The curl - o - https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bashCopy the code

Prompt error

Failed to connect to raw.githubusercontent.com port 443: Connection refused error 
Copy the code

I tried all kinds of online solutions, but it still didn’t work. Somehow, with the company network, it worked out… After the installation is successful, ZSH: command not found: NVM is displayed as ZSH: command not found: NVM

export NVM_DIR="$HOME/.nvm"  
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm  
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
Copy the code

Restart the console and resolve the problem

Oh – my – ZSH installation

Installation method:

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Copy the code

Error 443 is still reported, but I have to use git Clone to install it, which is slow and takes a few minutes. After several attempts, I can finally install it successfully, but every time I open the console, THERE are a lot of messages.

[oh-my-zsh] To fix your permissions you can do so by disabling  
[oh-my-zsh] the write permission of "group" and "others" and making sure that the
[oh-my-zsh] owner of these directories is either root or your current user.  
[oh-my-zsh] The following command may help:  
[oh-my-zsh]     compaudit | xargs chmod g-w,o-w  
[oh-my-zsh] If the above didn't help or you want to skip the verification of [oh-my-zsh] insecure directories you can set the variable ZSH_DISABLE_COMPFIX to [oh-my-zsh] "true" before oh-my-zsh is sourced in your zshrc fileCopy the code

To fix permissions, you can disable write permissions for “group” and “others” and ensure that the owner of these directories is root or the current user

ZSH_DISABLE_COMPFIX=true 1. Add ZSH_DISABLE_COMPFIX=true to the first line of the. ZSHRC file. 2