xcode-select error while trying to install Homebrew on macOS Sierra

homebrew, installation, macos

Solution

Yes , i have solved this error by using following steps.

- In your terminal write command :: xcode-select --install

- after doing step no 1 you will get one popUp , so click on install

Problem

While trying to install Homebrew on macOS Sierra: ``` xcode-select: error: invalid developer directory '/Library/Developer/CommandLineTools' Failed during: /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools ```

Original source