使用node npm install 一直抱錯,
gyp: No Xcode or CLT version detected!
最後查到用以下指令解決
1 |
xcode-select --install |
但發生xcode-select: error: command line tools are already installed, use “Software Update” to install 錯誤提示時,就要先清除掉
1 |
sudo rm -rf /Library/Developer/CommandLineTools |
Reference
https://stackoverflow.com/questions/34617452/how-to-update-xcode-from-command-line