Saturday, 28 December 2019

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance


> node-gyp rebuild





xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

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!
gyp ERR! configure error 

gyp ERR! stack Error: `gyp` failed with exit code: 1



if you got above error when  you are doing  npm install.

and you have xcode installed.......


then you can fix this by:


sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/

No comments:

Post a comment