Note that the @snyk/protect package has replaced the
snyk protect command.
snyk protect command failed with an error message which includes
GNU's patch is not
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.
For a Windows machine, Snyk recommends using https://git-scm.com/download 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 can use