Cannot deploy to with gh-pages with specific project due to error: cannot spawn sh: No such file or directory

后端 未结 1 1951

Keep getting the error:

error: cannot spawn sh: No such file or directory

fatal: unable to fork

The project builds correctly

相关标签:
1条回答
  • 2021-01-19 19:11

    It's trying to spawn sh.exe but can't find it.

    You need to add the git directory that contains sh.exe to your system variables.

    (go start and type: 'path'. This should provide you with a shortcut to 'system environment variables'. If not look up how to edit environment variables on your version of windows.)

    Once you have the environment variables dialogue box open, have a look in the System variables > 'path' list. There may be a git directory there that doesn't contain sh.exe. You need to replace it with one that does (ensure this also contains git.exe). On my pc sh.exe was found in:

    C:\Program Files\Git\bin

    Once this is done restart the terminal and attempt to deploy again.

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