mac下npm install遇到 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 rm -rf $(xcode-select -print-path)
$ xcode-select --install

 

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