Question one
After upgrading the latest MacOS system, GIT, which had no problem, reported the following error:
Сannot Run Git
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
At this time, thanks to Baidu, I found a solution
resolvent
The solution to the above problem is to execute the command on the terminal
xcode-select --install
After the installation is successful, we can execute git command on the terminal. The magic thing happened. Git command can run normally
Question 2
Next, let’s talk about another magical problem. If you are using the idea editor, when you open the idea, you may find that the idea will always prompt the following error message:
Cannot Run Git
xcrun:error:invalid active developer path...
The screenshot is as follows:
at a loss, we found a solution again
Solution
Click the preferences option in the system to enter the system configuration page, search git in the search box of the system configuration page, and configure the path to git executable option in the GIT configuration page as git, as shown in the following figure:
, and then click apply Submit the configuration information just now. Next, close the configuration page. It’s time to witness the miracle. The error message disappears. In this way, the configuration of GIT error message in the whole system is completed
Read More:
- Intellij IDEA jetty-jmx.xml Error:Duplicate config file paths found
- How to Fix win10 video dxgkrnl fatal error
- SpringBoot Error running ‘Application’: Command line is too long.Shorten command line for
- Mac error: SH: Vue cli service: command not found
- When Wireshark grabs packets, IP check sum error is displayed
- The execution of ExecuteNonQuery by oraclecommand is suspended
- error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory
- Visual Studio Code Error command ‘markdown.extension.onBackspaceKey’ not found
- SSM custom 404 and 500 error reporting interface
- Nginx: How to Use Error_Page
- Ajax prevents page requests from reporting errors
- How to Fix “Microsoft Visual C ++ 14.0 is required” Error
- Error (active) e1696 cannot open source file “errno.H” rpgworld problems encountered in installing visual studio 2017
- How to Solve Error: could not read ok from ADB Server.failed to start daemon error: cannot connect to daemon
- An error occurs when trying to pipe a python program to CD- sys.excepthook is missing lost sys.stderr
- Mac installation tree command error solution
- VUE Echarts Loading Error TypeError: Cannot read property getAttribute of null?
- How to Fix HTTP Error 500: the default page enter their own routing can’t find a result
- How to Fix TNS 12560 Error
- [How to Solve] java.lang.IllegalArgumentException: Request header is too large