Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

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

Open
damage-o opened this issue Apr 10, 2019 · 2 comments

Comments

@damage-o
Copy link

[email protected] prepublish E:**\vue-express-mongo-boilerplate-master
npm run snyk-protect

[email protected] snyk-protect E:**\vue-express-mongo-boilerplate-master
snyk protect

Snyk couldn't patch the specified vulnerabilities because GNU's patch is not available. Please install 'patch' and try again.
For more information please see our support page: https://support.snyk.io/snyk-cli/snyk-protect-requires-the-patch-binary.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] snyk-protect: snyk protect
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] snyk-protect script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! D:\ProgramFiles\nodejs\node_cache_logs\2019-04-10T02_11_22_145Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] prepublish: npm run snyk-protect
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] prepublish script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! D:\ProgramFiles\nodejs\node_cache_logs\2019-04-10T02_11_22_207Z-debug.log


some people said 'Perhaps patch.exe is not in your %PATH%?',but i have try:snyk -v
E:**\vue-express-mongo-boilerplate-master>snyk -v
1.149.0

@HJVeronica
Copy link

I'm having the same issue now. Have you resolved it?

@Diantha
Copy link

Diantha commented Jul 2, 2019

Hi All,
I have fixed it in this way:
1)Install git
2) Add new environment variables at this path : C:\Program Files\Git\usr\bin
3) Open a new shell with cmd try : path.exe --version -->you will see the correct version

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants