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

vue-express-mongo-boilerplate@0.9.0 prepublish E:**\vue-express-mongo-boilerplate-master
npm run snyk-protect

vue-express-mongo-boilerplate@0.9.0 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! vue-express-mongo-boilerplate@0.9.0 snyk-protect: snyk protect
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-express-mongo-boilerplate@0.9.0 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! vue-express-mongo-boilerplate@0.9.0 prepublish: npm run snyk-protect
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-express-mongo-boilerplate@0.9.0 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