hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Hyper CLI problem

Open unloopedmido opened this issue 3 years ago • 2 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: Garuda KDE Dr460nized Gaming Edition (Latest Version)
  • Hyper.app version: Hyper 3.1.0 Canary (Stable)
  • Link of a Gist with the contents of your .hyper.js: https://gist.github.com/FSCYT/463607e17f214e5406eb2ddbecac4eae
  • Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere): N/A
  • The issue is reproducible in vanilla Hyper.app: Not tested it yet, using this version of Hyper https://github.com/craftzdog/hyper built-in-webview

Issue

Whenever I use the "Install Hyper CLI in Path" It creates a symlink but the command doesn't work. Here is the output:

Hyper CLI installed Symlink created at /usr/local/bin/hyper undefined
[Notification] Hyper CLI installed: Symlink created at /usr/local/bin/hyper

unloopedmido avatar Dec 28 '21 20:12 unloopedmido

Ensure that /usr/local/bin is in your PATH

LabhanshAgrawal avatar Jan 01 '22 12:01 LabhanshAgrawal

/usr/local/bin is in my path, but attempting to run hyper on the CLI was giving me a zsh: command not found: hyper. I have confirmed that this path is loaded correctly into both my .zshrc and .bashrc shell configs and still the same error was occurring regardless of terminal used.

The first time I ran hyper, creating the symlink via the GUI failed because the command wasn't being run in sudo mode--and I was not prompted for a password (which I believe is the intended behaviour--so this seems like a bug of some sort), yet the symlink got created anyway:

/usr/local/bin/hyper -> /private/var/folders/s9/9np80gh1141009gwq2j82dn40000gn/T/AppTranslocation/27BDEA21-5160-4B2C-ADBA-5BF39F3810FB/d/Hyper.app/Contents/Resources/bin/hyper

This didn't seem correct, so I deleted this symlink (at usr/local/bin/hyper) and ran:

sudo ln -sf "/Applications/Hyper.app/Contents/Resources/bin/hyper" "/usr/local/bin/hyper" (this is the command suggested by the GUI when attempting to install hyper into your PATH).

This worked for me. You may need to reload hyper.

angusryer avatar Jan 23 '23 17:01 angusryer