Freecodecamp: Getting Error while running npm install

Created on 10 Oct 2016  路  4Comments  路  Source: freeCodeCamp/freeCodeCamp

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

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:Program Filesnodejsnode.exe" "D:UserskumaralAppDataRoamingnpmnode_modulesnpmbinnpm-cli.js" "run" "snyk-protect"
npm ERR! node v4.6.0
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
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 'snyk protect'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the freecodecamp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! snyk protect
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs freecodecamp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls freecodecamp
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! D:open-contributionfreecodecampnpm-debug.log

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_moduleschokidarnode_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:Program Filesnodejsnode.exe" "D:UserskumaralAppDataRoamingnpmnode_modulesnpmbinnpm-cli.js" "install"
npm ERR! node v4.6.0
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
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 run snyk-protect'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the freecodecamp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run snyk-protect
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs freecodecamp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls freecodecamp
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

Most helpful comment

was having the same issue, but opening a 'git bash' and running cmd from there worked for me.

All 4 comments

@akuntal You should install node.js 6+ (preferably 6.7). Refer to https://github.com/FreeCodeCamp/FreeCodeCamp/blob/staging/CONTRIBUTING.md

https://github.com/linnovate/mean/issues/1622
The solution in this link is to install a GNU patch which didn't work for me - could someone confirm the answer above as a working solution in stead please? I'm running 4.6.0.

Running node 6.8, on windows 10, still gets the same error

was having the same issue, but opening a 'git bash' and running cmd from there worked for me.

Was this page helpful?
0 / 5 - 0 ratings