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)
Thank you for the additional context. I reopened and we will investigate.
Working on a fix in https://github.com/graphql-hive/console/pull/5950
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.
https://stackoverflow.com/questions/57318463/macos-whats-the-correct-place-to-install-a-dylib-on-a-users-system
https://discussions.apple.com/thread/616992?sortBy=rank
https://www.reddit.com/r/osx/comments/10k0fov/i_dont_have_a_usrlocallib/
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.