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
bower init failing to bring the interactive prompt to create bower.json #802
Comments
Hey @jinmatt!
In case you have a linked copy of bower in The interactive flag is being set here: https://github.com/bower/bower/blob/master/lib/config.js#L11 you can debug that with a Note that you can enable it anyway with |
@satazor |
@jinmatt I've tried oh-my-zsh and it works. Can you try to uninstall bower and install it again? |
Tried that, but getting the same result again. |
Uninstalled bower 1.2.1 and installed 0.10.0, and now bower init is working. |
@jinmatt the only difference I'm having is that I was running on |
Oops didn't wanted to close. @jinmatt anyway, even if I remove that check, you will be running bower with Can you please do the following:
What does it output? |
Bump. |
@satazor
|
@satazor btw I'm too running on a Mac OS X. But on 10.9 Preview 5, do you think this might be a cause of this issue? |
Updated to 1.2.2 now. Now when I run
So I tried running |
Yes I've improved the error message. Still I would like to know why this is happening to you, since it can be affecting other users. Can you please do the following:
|
Done:
|
Looks good. Add |
Was going through the code, seems like I'm getting Here are the logs which you requested:
|
Seems like the version of node v0.8.19 I was running had this problem of setting process.title. |
@satazor : Just out of curiosity, why was the earlier version of bower working properly? The code wasn't checking for interactive auto, or wasn't checking the process title name? |
@jinmatt the default was |
This is still an issue when running under Cygwin. |
Yep, running into this under Cygwin shell. |
I've tracked this down to an issue with mintty.exe. In the bower/lib/config.js file (line 34 for bower v 1.4.1), tty.isatty(1) returns false under mintty.exe, but true if you run cygwin.bat (which is bash --login -i using the Windows terminal). Here's a convenient way to check your terminal: node -e "var tty=require('tty'); console.log('tty.isatty(1):' + tty.isatty(1))" Possibly related: https://code.google.com/p/mintty/issues/detail?id=56 For those stumbling across this issue looking for a solution, the obvious quick workaround for this issue is to simply avoid using mintty. This doesn't mean you have to return to using the Windows terminal for bash, as there are other alternatives. See http://blog.jaykanakiya.com/terminal-setup-in-windows-7/ and/or http://buildstarted.com/2012/05/11/replacing-default-git-bash-console-with-console2/ for instructions for configuring Console2 with bash. Turn off the menus, tool bars, and status bars, create a shortcut named "Cygwin" or "Bash", change the shortcut's icon to C:\cygwin64\Cygwin-Terminal.ico and you'll probably never know the difference. P.S. If you've ever noted other issues with mintty.exe, like msysgit not prompting for a password properly or the node repl not working, this is probably the same issue. |
Does not work with cygwin. Tried
|
Trying
I've also tried
This is on Windows 10 while running Cygwin as Administrator. |
+1 same here when using cygwin shell. In cmd all works fine.
|
I've tried to downgrade the version to bower 0.10.0 but it doesn't work well. The bower init configuration works fine for few seconds then it hangs up your terminal. The solution is found in on its documentation. It's not supporting MinTTY which causes this problem.
|
Thank you dreamypixy. It's so sad cuz i like MinTTY. |
do this from the run command |
Thanks a lot cataquil. But it's still half desicion. |
I have the same problem 😢 with Git Bash, but it works well with cmd |
I'm having this problem with bower in cygwin. This used to work some time ago, but for some reason it stopped after upgrading to the latest version. |
If you are using windows run bower init using CMD OR if you are using git bash follow these steps:
|
Hi, I encounter this bug too. When i use git bash,i encounter the seem issue。so i use windows cmd and fixed out this issue。 so if you os is windows,may be you can use cmd in place of git bash。 |
@IshanDemon |
i met it today。the way i slove it is using windows cmd instead of git bash.It worked! |
This is still an issue w/ Using Will try some of the following solutions mentioned above and report back. |
Getting the same issue: Register requires an interactive shell. |
I still get error "Register requires an interactive shell" with git version 2.10.2.windows.1 |
Same here as @Kranthi1547 . However, works in PowerShell. |
After updating bower to 1.2.1, the bower init command seems to fail. When running the bower init the follow result is shown:
Here is the Stack Trace when run in verbose mode:
The text was updated successfully, but these errors were encountered: