npm报错 gyp: No Xcode or CLT version detected!

报错:

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 xcode-select --install
我的个人博客有空来坐坐

https://www.wangyanan.online

你可能感兴趣的:(前端,ERROR)