console: Cannot install hive CLI on MacOS when `/usr/local/lib` or `/usr/local/bin` does not exists

curl -sSL https://graphql-hive.com/install.sh | sh
This script requires superuser access.
You will be prompted for your password by sudo.
Password:
Downloading https://graphql-hive-cli.s3.us-east-2.amazonaws.com/channels/stable/hive-darwin-arm64.tar.gz
######################################################################## 100.0%
Downloaded to /var/folders/pn/tpvx588n1vnczk9zfj32b2dh0000gq/T/tmp.01AqaSJR
tar: could not chdir to '/usr/local/lib'

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (15 by maintainers)

Most upvoted comments

Thank you for the additional context. I reopened and we will investigate.

FWIW I encountered this problem too a couple of weeks ago and had to manually create these folders myself. I was using a brand new MacBook M3 Pro with Sonoma 14.7.

From what I gather these directories do not exist by default on Macs, but a lot of tools create them, so a lot of users (but not all) will have them.

So you letting down all people who don’t have this path on their mac?

I’d assume the installer could create this directory if it does not exist.