1. No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
    2. No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
    3. No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
    4. gyp: No Xcode or CLT version detected!
    5. gyp ERR! configure error
    6. gyp ERR! stack Error: `gyp` failed with exit code: 1

    解决方案:

    1. sudo rm -rf /Library/Developer/CommandLineTools
    2. xcode-select --install

    参考: