To install PostgreSQL client on macOS:

brew doctor
brew update
brew install libpq

Test:

$ psql -V
psql (PostgreSQL) 13.2