mac 下 npm 安装某些包,如 bcrypto,报以下错误

    1. > node-gyp rebuild
    2. No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
    3. No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
    4. No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
    5. gyp: No Xcode or CLT version detected!

    解决办法:

    1. sudo xcode-select -s /Applications/Xcode.app/Contents/Developer