-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hyper CLI command not installed if /usr/local/bin doesn't exist #2829
Comments
Can you try to find this symbolic link?
|
@chabou It appears |
@colinhemphill can you verify that |
@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 |
@donatoaguirre24, you're problem on Windows might be related to this: #2823 |
@donatoaguirre24 please open "Edit environment variables for your account" dialog https://i.stack.imgur.com/HQPYL.png Or simply reboot your Windows. |
Yeah, it turns out that |
After some discussion with @colinhemphill on Slack https://zeit-community.slack.com/archives/C1TMVKPFH/p1523905461000364 It appears that We should take care of that. |
Worth noting that if you do not have write access to At some point my write access got modified, running |
|
No, |
OK. Then why it's not there? 🤕 |
Unless you are trying the get it working on a machine where you don't have write permissions in /usr/local/ |
For some reason, on my macOS 10.13.4 installation, installing Hyper from the website didn't install |
Same issue for me. Brand new Macbook Pro. High Sierra 10.13.4 (17E202).
Hyper.app installed fine. Well, I dragged it into Applications and executed it without any errors. Turns out |
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. |
Got it to work. Had to install it via NPM and reboot. Dunno why it didn't install by default. |
@jacksonhvisuals how did you install via npm? |
Actually, I think all I ended up doing was installing |
ok thank you. that did not work for me though. Even though I did install hyper through brew cask on my admin user, the install failed silently, because my default user did not have write permissions for usr/local/bin. I temporarily enabled my default user to write in that directory and the install worked. Still a weird behaviour, since all other programs I had installed before the same way did not have problems of that sort. |
Sorry if bumping the thread or anything along the lines. I installed Hyper on a brand new OSX installation - |
@chabou I was thinking of helping with this issue. After fiddling with the source I was able to find ‘app/utils/cli-install.js’ which had a part where it tried to create a symlink in ‘/usr/local/bin’ and figured it ran on installation. I believe this is the root of the problem in cases where the symlink isn’t created (not in cases where the folder doesn’t exist, although a check could be performed there prompting the folder’s creation) - ‘/usr/local/bin’ comes with writing permissions only for Root (specifically Wheel group?) on brand new MacOS installations. The question is whether the installation process runs on higher privileges and if not whether it should. Either way I think the default permissions on Can we run the installation on higher privileges? Should we modify ‘/usr/local/bin’ write permissions? |
This worked for me. Thanks |
I can recreate this in my OSX environment...
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! |
This worked for me as well. Thanks! |
Wow this works! Thanks! |
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: #3648 (comment) |
Installing hyper.app in macOS Mojave would fail when creating the symlink. |
This worked for me, after I created the bin-folder first. |
I am on the latest Hyper.app version
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
The text was updated successfully, but these errors were encountered: