Help Center

'snyk protect' requires the 'patch' binary

'snyk protect' failed with an error message which includes "GNU's patch is not available"

When running snyk protect, the CLI downloads relevant patches and applies them using the patch executable. If this file is not found, the following error message is shown:

Snyk couldn't patch the specified vulnerabilities because GNU's patch is not available. Please install 'patch' and try again.

On a Windows machine, we recommend using to install the needed files. Make sure to have your %PATH% environment variable include the location of the installed patch.exe (the default path is C:\Program Files\Git\usr\bin). You can verify the proper installation by running patch -v . Once you see the proper output, you are good to go with snyk protect .