欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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

 

相关标签: 前端 npm