Skip to content
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

'/bin/bash' not found on Windows 10 with WSL installed #3709

Closed
2 tasks done
JoshuaKGoldberg opened this issue May 31, 2019 · 4 comments
Closed
2 tasks done

'/bin/bash' not found on Windows 10 with WSL installed #3709

JoshuaKGoldberg opened this issue May 31, 2019 · 4 comments

Comments

@JoshuaKGoldberg
Copy link
Contributor

  • 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: Windows 10

  • Hyper.app version: 3.0.2

  • Link of a Gist with the contents of your .hyper.js: I haven't touched it

  • Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere): N/A

  • The issue is reproducible in vanilla Hyper.app: Is Vanilla

Issue

While in the Hyper terminal immediately after installing on Windows, both before and after a restart, any attempt to use the global hyper command after previously running npm i -g hyper results in:

'/bin/bash' is not recognized as an internal or external command, operable program or batch file.

Bin Bash Not Found

@abhijithvijayan
Copy link

@JoshuaKGoldberg Try integrating WSL with Hyper.

@JoshuaKGoldberg
Copy link
Contributor Author

@abhijithvijayan I haven't touched WSL in months and don't want to. That's a lot of overhead to be able to run an Electronic app. Is a *nix environment a requirement for Hyper?

Also, what does "integrating" mean here? Could you be a little more informative please?

@abhijithvijayan
Copy link

abhijithvijayan commented Jun 1, 2019

@JoshuaKGoldberg
Setup Hyper.js to automatically open Ubuntu on Windows

Open up Hyper.js configuration by typing Ctrl + ,
Scroll down to shell and change it to C:\\Windows\\System32\\bash.exe

// the shell to run when spawning a new session (i.e. /usr/local/bin/fish)
    // if left empty, your system's login shell will be used by default
    //
    // Windows
    // - Make sure to use a full path if the binary name doesn't work
    // - Remove `--login` in shellArgs
    //
    // Bash on Windows
    // - Example: `C:\\Windows\\System32\\bash.exe`
    //
    // PowerShell on Windows
    // - Example: `C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`
    shell: 'C:\\Windows\\System32\\bash.exe',

This will only work if you installed linux via WSL, I use hyper use my linux shell like this.
Hope it helps.

@JoshuaKGoldberg
Copy link
Contributor Author

Cool, thanks. This issue was meant as a bug report, so I'll rename it to be asking about how to use WSL and file a new issue for the case of not using WSL.

@JoshuaKGoldberg JoshuaKGoldberg changed the title '/bin/bash' not found on Windows 10 '/bin/bash' not found on Windows 10 with WSL installed Jun 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants