hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Hyper CLI command not installed if /usr/local/bin doesn't exist

Open colinhemphill opened this issue 8 years ago • 34 comments

  • [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

screen shot 2018-04-16 at 11 33 39 am

colinhemphill avatar Apr 16 '18 16:04 colinhemphill

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

chabou avatar Apr 16 '18 16:04 chabou

I just update and I can't even see the prompt text

screen shot 2018-04-16 at 9 54 30 am

xoche avatar Apr 16 '18 16:04 xoche

@chabou It appears /usr/local/bin/hyper doesn't exist on my machine.

colinhemphill avatar Apr 16 '18 16:04 colinhemphill

@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 avatar Apr 16 '18 17:04 colinhemphill

@colinhemphill can you verify that /usr/local/bin/ exists and if you can write inside this directory?

chabou avatar Apr 16 '18 18:04 chabou

@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?

colinhemphill avatar Apr 16 '18 18:04 colinhemphill

I'm having the same problem in windows 10, I upgraded hyper to version 2.0 but the CLI doesn't work.

image

image

donatoaguirre24 avatar Apr 16 '18 19:04 donatoaguirre24

@donatoaguirre24, you're problem on Windows might be related to this: https://github.com/zeit/hyper/issues/2823

colinhemphill avatar Apr 16 '18 19:04 colinhemphill

@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.

chabou avatar Apr 16 '18 19:04 chabou

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.

colinhemphill avatar Apr 16 '18 19:04 colinhemphill

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.

chabou avatar Apr 16 '18 19:04 chabou

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. 😄

BenDiuguid avatar Apr 17 '18 17:04 BenDiuguid

/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?

rbukovansky avatar Apr 23 '18 13:04 rbukovansky

No, /usr/local/bin is used for the reason that it does not need elevated permissions 👍

albinekb avatar Apr 23 '18 13:04 albinekb

OK. Then why it's not there? 🤕

rbukovansky avatar Apr 23 '18 13:04 rbukovansky

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?

dawid-s avatar Apr 27 '18 10:04 dawid-s

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.

jacksonhvisuals avatar May 14 '18 13:05 jacksonhvisuals

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.

samstr avatar May 14 '18 20:05 samstr

In my case, /usr/local/bin exists, and I still have the same issue.

imdanielsp avatar May 15 '18 14:05 imdanielsp

@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.

sean-roberts avatar May 15 '18 20:05 sean-roberts