MacOS升级后出现的 xcrun: error: invalid active developer path, missing xcrun 错误 解决办法 图文教程

2020-02-12 00:01:33

错误说明

我们在升级了MacOS系统之后出现了错误,如下:

# git add .
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

在终端中输入git命令出现了上述错误,后来想到应该是升级了系统导致的。下面给出解决方法。

解决办法

在终端输入:

xcode-select –install

重装command line tools 就好了


  • 2021-04-25 09:54:19

    sequelize 时区配置

    sequelize 默认情况下, 保存日期时会转换成 +00:00时区,