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

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

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 3
  • Comments: 34 (1 by maintainers)

Most upvoted comments

I can recreate this in my OSX environment…

  1. Download and unzip Hyper
  2. Open Hyper after you download (it appears the /usr/local/bin link will link to where ever that is you first started it from - my case was the download temp directory in the browser)
  3. The link will be broken once you close that hyper instance
  4. Once you drag the app to “Applications” it will be broken also

I fixed it by the following

rm /usr/local/bin/hyper
ln -s /Applications/Hyper.app/Contents/Resources/bin/hyper /usr/local/bin/hyper
ls -lah /usr/local/bin/hyper

The last command checks it.

Sorry if bumping the thread or anything along the lines.

I installed Hyper on a brand new OSX installation - In my case I didn’t get the symbolic link on /usr/local/bin and had to create it manually using - sudo ln -s /Applications/Hyper.app/Contents/Resources/bin/hyper /usr/local/bin/hyper which fixed the problem 👍

I can recreate this in my OSX environment…

  1. Download and unzip Hyper
  2. Open Hyper after you download (it appears the /usr/local/bin link will link to where ever that is you first started it from - my case was the download temp directory in the browser)
  3. The link will be broken once you close that hyper instance
  4. Once you drag the app to “Applications” it will be broken also

I fixed it by the following

rm /usr/local/bin/hyper
ln -s /Applications/Hyper.app/Contents/Resources/bin/hyper /usr/local/bin/hyper
ls -lah /usr/local/bin/hyper

The last command checks it.

Great, It’s work for me!

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.

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

image

image

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

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

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

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

Installing hyper.app in macOS Mojave would fail when creating the symlink. Uninstalling then installing via brew cask install hyper successfully created the symlink.

I can recreate this in my OSX environment…

  1. Download and unzip Hyper
  2. Open Hyper after you download (it appears the /usr/local/bin link will link to where ever that is you first started it from - my case was the download temp directory in the browser)
  3. The link will be broken once you close that hyper instance
  4. Once you drag the app to “Applications” it will be broken also

I fixed it by the following

rm /usr/local/bin/hyper
ln -s /Applications/Hyper.app/Contents/Resources/bin/hyper /usr/local/bin/hyper
ls -lah /usr/local/bin/hyper

The last command checks it.

This is more or less exactly what I did today after installing Hyper for the first time, and it’s what I came to report. Applying this fix allowed me to use Hyper but led me to this error when installing a theme: https://github.com/zeit/hyper/issues/3648#issuecomment-532355802

Sorry if bumping the thread or anything along the lines.

I installed Hyper on a brand new OSX installation - In my case I didn’t get the symbolic link on /usr/local/bin and had to create it manually using - sudo ln -s /Applications/Hyper.app/Contents/Resources/bin/hyper /usr/local/bin/hyper which fixed the problem 👍

This worked for me as well. Thanks!

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.

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

@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

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