mac 下 npm 安装某些包,如 bcrypto
,报以下错误
> node-gyp rebuild
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 -s /Applications/Xcode.app/Contents/Developer