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

snyk error while running 'npm install'. #140

Open
HJVeronica opened this issue Apr 21, 2019 · 1 comment
Open

snyk error while running 'npm install'. #140

HJVeronica opened this issue Apr 21, 2019 · 1 comment

Comments

@HJVeronica
Copy link

error code ELIFECYCLE
error errno 1
error vue-express-mongo-boilerplate@0.9.0 prepare: `npm run snyk-protect`
error Exit status 1
error Failed at the vue-express-mongo-boilerplate@0.9.0 prepare script.
error This is probably not a problem with npm. There is likely additional logging output above.
verbose exit [ 1, true ]

Tried updating Git (https://git-scm.com/download/win), and add C:\Program Files\Git\usr\bin\ to the PATH. But it didn't work.

So, I just removed these 2 lines from the package.json file for now:

"prepublish": "npm run snyk-protect",
"prepare": "npm run snyk-protect"

npm install worked after then, but I wanna know why I have been getting this error and how to fix it properly.

FYI, I've tried patch -v and got this:

GNU patch 2.7.6
Copyright (C) 2003, 2009-2012 Free Software Foundation, Inc.
Copyright (C) 1988 Larry Wall

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Larry Wall and Paul Eggert
@lsparey
Copy link

lsparey commented Apr 30, 2019

Adding patch to the path was all I needed to do to get it working on Windows. The patch version is the same. What was the output before the error lines?

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

2 participants