[node.js] #1 node-gyp: xcode-select error

今天在練習編譯node-gyp,結果編譯時產生問題

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

解決方法可以參考node-gyp #539

基本解決方法就是:

  1. 安裝xcode/xcode-beta
  2. 在終端機輸入以下指令:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.