Turns out my git was not added in environment variables path, resolved the issue after adding git to path!