GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Snyk couldn't patch the specified vulnerabilities because GNU's patch is not available. · Issue #1711 · linnovate/mean

Snyk couldn't patch the specified vulnerabilities because GNU's patch is not available.  #1711

New issue
Copy link
New issue
Copy link
Closed
Closed
Snyk couldn't patch the specified vulnerabilities because GNU's patch is not available. #1711
Copy link
Assignees
adrukhjwebbdevclowenhg
Labels
documentation

Description

@PremkumarAgrawal
PremkumarAgrawal
opened on Nov 20, 2016
Issue body actions

Hello everyone
I am trying to initialize new MEAN project & facing this issue on PC & laptop both.

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

Reacted by Savage-Moon

Activity

  1. adrukh commented on Nov 20, 2016

    @adrukh
    adrukh
    on Nov 20, 2016
    Contributor
    More actions

    @PremkumarAgrawal please install binaries from https://git-scm.com/download/win, they include the required GNU patch.

    I'm on the Snyk team and we are pushing for smoother windows support in the next releases!
    See https://github.com/Snyk/snyk/issues/48#issuecomment-256260149 for more details.

    Reacted by Joshua Cummings and David Taylor
  2. PremkumarAgrawal commented on Nov 20, 2016

    @PremkumarAgrawal
    PremkumarAgrawal
    on Nov 20, 2016
    Author
    More actions

    Hey @adrukh thanks for responding..
    I hav already install Git Bash & i have also set the environment variables also for it still i am facing the same issue, how i can overcome it.

    Reacted by Premkumar Agrawal
  3. adrukh commented on Nov 20, 2016

    @adrukh
    adrukh
    on Nov 20, 2016
    Contributor
    More actions

    Perhaps patch.exe is not in your %PATH%?

    What command are you running when you see this error message? Is it npm install or something else?

  4. PremkumarAgrawal commented on Nov 20, 2016

    @PremkumarAgrawal
    PremkumarAgrawal
    on Nov 20, 2016
    Author
    More actions

    Yaa its npm install

  5. adrukh commented on Nov 20, 2016

    @adrukh
    adrukh
    on Nov 20, 2016
    Contributor
    More actions

    And if you just run patch.exe --help at the same prompt where you run npm install, do you get the help info or Bad command or filename?

  6. PremkumarAgrawal commented on Nov 20, 2016

    @PremkumarAgrawal
    PremkumarAgrawal
    on Nov 20, 2016
    Author
    More actions

    I am getting
    'patch.exe' is not recognized as an internal or external command, operable program or batch file.

    after running patch.exe --help

  7. PremkumarAgrawal commented on Nov 20, 2016

    @PremkumarAgrawal
    PremkumarAgrawal
    on Nov 20, 2016
    Author
    More actions

    @adrukh I got some links which are suggesting me to download & install patch.exe from this link http://gnuwin32.sourceforge.net/packages/patch.htm

    What should I do...

  8. adrukh commented on Nov 20, 2016

    @adrukh
    adrukh
    on Nov 20, 2016
    Contributor
    More actions

    IMPORTANT please refrain from using the gnuwin32.sourceforge... link as it points to an executable that does not comply with proper cli use.

    Use https://git-scm.com/download/win instead.

    As for the output you've shared, patch.exe is not in your %PATH%. Please add the proper folder where the binaries are installed and run npm install only when patch.exe --help works for you.

    Reacted by gayshub, Trapton and Edgar Froes
  9. PremkumarAgrawal commented on Nov 20, 2016

    @PremkumarAgrawal
    PremkumarAgrawal
    on Nov 20, 2016
    Author
    More actions

    @adrukh Can you please tel me where I can find patch.exe after installing GIT from this given link https://git-scm.com/download/win. So that i can add patch.exe to my %PATH%

  10. PremkumarAgrawal commented on Nov 20, 2016

    @PremkumarAgrawal
    PremkumarAgrawal
    on Nov 20, 2016
    Author
    More actions

    @adrukh I got patch.exe at this location C:\Program Files\Git\usr\bin\patch.exe after installing GIT, I set the PATH variable also & execute the command patch.exe --help found the same

    'patch.exe' is not recognized as an internal or external command, operable program or batch file.

    Did i used the proper patch.exe or I should use any one else..

  11. adrukh commented on Nov 20, 2016

    @adrukh
    adrukh
    on Nov 20, 2016
    Contributor
    More actions

    The location is ok. Can you show the output of echo %PATH% from your prompt?

  12. PremkumarAgrawal commented on Nov 20, 2016

    @PremkumarAgrawal
    PremkumarAgrawal
    on Nov 20, 2016
    Author
    More actions

    Yaa Here t is,

    C:\ProgramData\Oracle\Java\javapath;C:\oraclexe\app\oracle\product\10.2.0\server \bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32 \WindowsPowerShell\v1.0\;C:\Program Files\Microsoft\Web Platform Installer\;C:\P rogram Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x 86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Java\jdk1.7.0_02\bin;C:\Program F iles (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL S erver\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\M anagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;F:\An droid Studio\android-sdk\tools\ant\bin;F:\Android Studio\tools;C:\Program Files\ nodejs\;C:\Program Files\Git\cmd;C:\Program Files\Git\bin;C:\Program Files\Git\u sr\bin\patch.exe;.;C:\Program Files\Java\jdk1.7.0_51\bin;.;C:\Users\Premkumar\Ap pData\Roaming\npm;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Program Files\ Git\cmd;C:\Program Files\Git\bin;C:\Program Files\Git\usr\bin\patch.exe;

  13. adrukh commented on Nov 20, 2016

    @adrukh
    adrukh
    on Nov 20, 2016
    Contributor
    More actions

    Change the added part from C:\Program Files\Git\usr\bin\patch.exe; to C:\Program Files\Git\usr\bin; and you're done!

    Reacted by v2future, Edgar Froes, Savage-Moon and Rui Trigo
  14. PremkumarAgrawal commented on Nov 20, 2016

    @PremkumarAgrawal
    PremkumarAgrawal
    on Nov 20, 2016
    Author
    More actions

    @adrukh LET ME TRY...

  15. PremkumarAgrawal commented on Nov 20, 2016

    @PremkumarAgrawal
    PremkumarAgrawal
    on Nov 20, 2016
    Author
    More actions

    Hey Thanks @adrukh patch issue is solved...

    Reacted by Jeff Hull and Edgar Froes
    Reacted by Anton Drukh and Edgar Froes
  16. clowenhg
    added
    documentation
    on Nov 21, 2016
  17. clowenhg commented on Nov 21, 2016

    @clowenhg
    clowenhg
    on Nov 21, 2016
    Contributor
    More actions

    Labeling this Documentation because, if I'm not mistaken, this is a known thing and we just don't have this info readily available yet.

    Or @adrukh is there an ETA on the improved windows support? Don't want to spend time writing up documentation if this will all just sort of work next week.

  18. adrukh commented on Nov 21, 2016

    @adrukh
    adrukh
    on Nov 21, 2016
    Contributor
    More actions

    @clowenhg thanks for documenting!

    The improvement to bundle the patch.exe binary with snyk is on our roadmap but doesn't have a definitive release right now.

  19. clowenhg
    assigned
    adrukh
    ,
    jwebbdev
    and
    clowenhg
    on Nov 23, 2016
  20. clowenhg commented on Nov 23, 2016

    @clowenhg
    clowenhg
    on Nov 23, 2016
    Contributor
    More actions

    @adrukh @rjVapes I've assigned you guys just to review that the relevant info is here (I don't know if there would be something missing). I'll write up the summary in the Readme.

  21. timelf123 commented on Nov 23, 2016

    @timelf123
    timelf123
    on Nov 23, 2016
    Contributor
    More actions

    @clowenhg If it's helpful, I remember recording a screencast/gif of this process (installing patch and adding to path) but I can't find the link! It may be in the gitter chat?

    I thought it was in the snyk issue queue itself but don't see it https://github.com/Snyk/snyk/issues/45

  22. aviadatsnyk commented on Dec 20, 2016

    @aviadatsnyk
    aviadatsnyk
    on Dec 20, 2016
    More actions

    Hey!

    The improved windows support is here! Currently, it's in beta and will be released soon. if you can't wait - we'd love for you to try it right now and make sure we got it right for you. If you encounter any issues - please report them either here or at https://github.com/Snyk/snyk/issues/48

    To do this:

    1. npm install -g snyk@dev
    2. Try snyk test, snyk protect and snyk wizard to make sure you get the usual excellent snyk experience.
  23. adrukh commented on Dec 20, 2016

    @adrukh
    adrukh
    on Dec 20, 2016
    Contributor
    More actions

    @liorkesos FYI ^^^ :)

  24. liorkesos
    closed this as completedon Sep 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @adrukh
    adrukh
  • @clowenhg
    clowenhg
  • @jwebbdev
    jwebbdev

Labels

documentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402792 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.