mac下npm install遇到 gyp: No Xcode or CLT version detected!
程序员文章站
2022-05-30 09:15:01
...
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
gyp: No Xcode or CLT version detected!
解决方案:
$ sudo rm -rf $(xcode-select -print-path)
$ xcode-select --install