美文网首页
Mac 解决 gyp: No Xcode or CLT vers

Mac 解决 gyp: No Xcode or CLT vers

作者: Alex0825 | 来源:发表于2020-05-31 10:08 被阅读0次

    mac OS 升级 10.15.x 之后,npm install 提示错误 gyp: No Xcode or CLT version detected!

    解决办法

    $ sudo rm -rf $(xcode-select -print-path)
    $ xcode-select --install
    

    The error message above is self explanatory. It saying that the node-gyp rebuild is failed, and this is because No Xcode or CLT version detected.

    • Xcode is an integrated development environment (IDE) for macOS containing a suite of software development tools developed by Apple for developing software for macOS, iPadOS, iOS, watchOS, and tvOS.
    • The CLT stands for “Command Line Tools for Xcode”. This package enables UNIX-style development via Terminal by installing command line developer tools, as well as macOS SDK frameworks and headers. Many useful tools are included, such as the Apple LLVM compiler, linker, and Make. If you use Xcode, these tools are also embedded within the Xcode IDE.
      To solve this problem,we need to download and re-install the macOS “Command Line Tools for Xcode”

    参考 https://medium.com/@mrjohnkilonzi/how-to-resolve-no-xcode-or-clt-version-detected-d0cf2b10a750

    相关文章

      网友评论

          本文标题:Mac 解决 gyp: No Xcode or CLT vers

          本文链接:https://www.haomeiwen.com/subject/xurlzhtx.html