icebob / vue-express-mongo-boilerplate

:star: MEVN Full stack JS web app boilerplate with NodeJS, Express, Mongo and VueJS
http://vemapp.moleculer.services/
2.84k stars 757 forks source link

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 5 years ago

damage-o commented 5 years ago

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 commented 5 years ago

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

Diantha commented 5 years ago

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