新しいPCにインストールしていたら Error: The `brew link` step did not complete successfullyというエラーが出たので修正しました。
$ brew install jq ==> Installing dependencies for jq: oniguruma ==> Installing jq dependency: oniguruma ==> Downloading https://homebrew.bintray.com/bottles/oniguruma-6.9.0…