This article records based on MAC to build a development environment encountered agent problems, hope to help people who have similar problems.

Recently, I learned React Native development, and the installation environment was configured smoothly according to the guidance of the official website. Until the step of creating a new project, CocoaPods relied on the installation step card for a long time, so I had to configure the agent to continue.

1. MAC with known Inter processor installation agent does not need to update (client and configuration file), remember!! 2. Agent After Set as system Agent is enabled, desktop applications can be taken over, except for terminals. You need to perform the following configuration by yourself (use the agent permanently). 3. On the menu bar, click the agent application icon and choose Copy Terminal Agent Command for future use.

  1. View and edit configuration files (into the current user’s home directory (default))
Bash_profile (1) Enter open-e. bash_profile (If a file exists, it will be opened automatically. For details, see 4. Create file) (if just viewing, use open.bash_profile directly) (2) Edit a new line and paste in the terminal agent command. ZSHRC (1) Enter open-e. ZSHRC (If a file exists, it will be opened automatically. For details, see 4. ZSHRC) (2) Edit a new line and paste in the terminal agent command. (4) Update the newly configured environment variable source ~/.zshrcCopy the code
  1. View the current proxy parameter configuration
echo $http_proxy;
echo $https_proxy;
echo $all_proxy;
Copy the code
  1. Test whether the proxy is successful (cannot pass the ping test, ping will not remove the proxy; Curl system generally built-in)
Curl -i https://twitter.com The following information is displayed: HTTP/1.1 200 Connection ESTABLISHED HTTP/2 200Copy the code
  1. Create a file
(1) Start the terminal (2) Go to the current user's home directory (the default is) : CD ~ or CD /Users/YourMacUserName (3) Enter the touch file name, such as touch.bash_profileCopy the code