Git bash Error: Could not fork child process: There are no available terminals (-1)

后端 未结 28 2102
抹茶落季
抹茶落季 2020-12-12 12:17

I have had up to 8 git bash terminals running at the same time before.

Currently I have only 2 up.

I have not seen this error before and I am not understand

相关标签:
28条回答
  • 2020-12-12 12:34

    Open task manager and kill process with name bash, this worked for me.

    0 讨论(0)
  • 2020-12-12 12:34

    In my case, I had a stray abd.exe that was still open in task manager. Killing it fixed the issue.

    0 讨论(0)
  • 2020-12-12 12:36

    I address this with a workaround:

    1. Close the Git Bash window.
    2. Open Task manager.
    3. Find the 'Git for Windows' process.
    4. Kill it.
    5. Open Git Bash.

    It should be ok now.

    0 讨论(0)
  • 2020-12-12 12:36

    In my case, I needed to kill sh.exe taskkill /F /IM sh.exe

    0 讨论(0)
  • 2020-12-12 12:37

    For me (or anyone running protractor, which may spin up a standalone Selenium/WebDriver server), I needed to taskkill the specific webdriver which was running my tests.

    So just a different argument: or your chromedriver version may vary

    taskkill /f /im chromedriver_2.34.exe
    

    Note your driver may vary: IEDriverServer*.*.*.exe vs chromedriver_*.**exe

    Your driver may version may vary:chromedriver_2.34.exe vs chromedriver_2.33.exe

    This problem got worse after protractor quit without closing the automated /test-driven browser, (due to a separate issue I don't yet understand.) Naturally many chromedriver tasks remain running, that's why kill them.

    0 讨论(0)
  • 2020-12-12 12:38

    If you are using Visual Studio Code and you can't find ssh-agent.exe or can't taskkill it and after opening Git Bash you get that error, just go to your VSCode open Terminal>New Terminal and just press the trashbin icon the (Kill Terminal). e.g (1:bash) if you got multiple then just kill them all and you should be good.

    0 讨论(0)
提交回复
热议问题