Keep getting the error:
error: cannot spawn sh: No such file or directory
fatal: unable to fork
The project builds correctly
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.