Hyper CLI command not installed if /usr/local/bin doesn't exist
-
[x] I am on the latest Hyper.app version
-
[x] I have searched the issues of this repo and believe that this is not a duplicate
-
OS version and name: MacOS 10.13.4
-
Hyper.app version: 2.0.0
-
Link of a Gist with the contents of your .hyper.js: https://gist.github.com/colinhemphill/04a4c1e91a89ac2958e679581e38fb26
-
The issue is reproducible in vanilla Hyper.app: Is Vanilla
Issue
I updated to 2.0.0, and the hyper commands aren't working for me. From poking around in documentation, it doesn't look like I'm supposed to do anything to have access to the CLI, but maybe I'm wrong.
bash: hyper: command not found

Can you try to find this symbolic link?
❯ ls -lah /usr/local/bin/hyper
lrwxr-xr-x 1 chabou admin 52 avr 15 14:14 /usr/local/bin/hyper -> /Applications/Hyper.app/Contents/Resources/bin/hyper
I just update and I can't even see the prompt text

@chabou It appears /usr/local/bin/hyper doesn't exist on my machine.
@xoche I think there's a closed issue for that one: https://github.com/zeit/hyper/issues/2826
hyperborder doesn't work with 2.0.0
@colinhemphill can you verify that /usr/local/bin/ exists and if you can write inside this directory?
@chabou I created the directory after you posted your first question and tried to install Hyper from scratch. This is a brand new Mac and it definitely wasn't there initially. Maybe I need to update the permissions on /usr/local/bin and try again?
I'm having the same problem in windows 10, I upgraded hyper to version 2.0 but the CLI doesn't work.


@donatoaguirre24, you're problem on Windows might be related to this: https://github.com/zeit/hyper/issues/2823
@donatoaguirre24 please open "Edit environment variables for your account" dialog https://i.stack.imgur.com/HQPYL.png Close it to force a refresh of env var cache from registry.
Or simply reboot your Windows.
Yeah, it turns out that /usr/local/bin was not on my new Macbook by default, so I had to create the directory and make sure it had writeable permissions. Then a fresh install of Hyper created the link, and the CLI is working for me.
After some discussion with @colinhemphill on Slack https://zeit-community.slack.com/archives/C1TMVKPFH/p1523905461000364
It appears that /usr/local/bin could not exists (and not be added to path).
Install homebrew fixed this.
We should take care of that.
Worth noting that if you do not have write access to /usr/local/bin, hyper will also fail to install.
At some point my write access got modified, running brew doctor was really helpful for anyone reaching this issue. 😄
/usr/local/bin exists on my Mac, but Hyper was not installed there. Permissions issue? Shouldn't Hyper try to install itself there by using elevated permissions?
No, /usr/local/bin is used for the reason that it does not need elevated permissions 👍
OK. Then why it's not there? 🤕
No, /usr/local/bin is used for the reason that it does not need elevated permissions +1
Unless you are trying the get it working on a machine where you don't have write permissions in /usr/local/ Wouldn't it make sense to try to symlink to $HOME/.local/bin if it fails to acess /usr/local/bin?
For some reason, on my macOS 10.13.4 installation, installing Hyper from the website didn't install hyper cli command. Checked /usr/local/bin, and it's not there.
Same issue for me. Brand new Macbook Pro. High Sierra 10.13.4 (17E202).
hyper: command not found
Hyper.app installed fine. Well, I dragged it into Applications and executed it without any errors.
Turns out /usr/local/bin didn't exist on my machine.
In my case, /usr/local/bin exists, and I still have the same issue.
@dsantosp12 for me, I think I was in the same boat. I reinstalled it and it worked. My theory is that while setting up this new computer I didn't have it originally and eventually it was added.