Check if curl is installed properly in your device by typing curl --version in the cmd in windows or else if you are using a mac type curl --version in the terminal.
curl --version