Bower Init Register requires an interactive shell error

4.2k Views Asked by At
4

There are 4 best solutions below

1
giovannipds On

The problem is with the terminal/console you're using to.

I ran into this same problem other day, I was using Git bash as my terminal, and trying to run this command with Node.js command prompt worked normally.

Try to use another terminal, like cmder (I really recommend this to Windows users), Node.js command prompt or even Windows cmd itself. Hope to have helped you. Best wishes!

0
Eduardo Herrera On

The solution is to install GIT bash and avoid using MinTTY and follow the documentation. Here is the solution:

Uninstall existing GIT bash Reinstall GIT bash Set up during installation:

  • Select Use Git from the Windows Command Prompt

  • Select Checkout Windows-style, commit Unix-style line endings

  • Select Use Windows' default console window

0
Frank Decker On

Okay this works for sure -

  1. Go to https://cygwin.com/install.html and download either the 32 or 64 bit version of Cygwin.
  2. Run the install and install it onto one of your drives.
  3. Run the Cygwin.bat and you will get the same command line interface.
  4. When you run bower init, it will work just fine. The Mintty that comes with GIT is broken for somethings. Use the shell that comes with Cygwin and you will be fine.

It works for me no problem. I used the 64 bit version on a Window 8 64bit OS. Good Luck!

0
Scott D. Strader On

You're most likely running C:\Program Files\Git\git-bash.exe and can instead run C:\Program Files\Git\bin\bash.exe to eliminate the issue. This avoids having to install another yet another terminal.