Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
gyp ERR! stack Error: unable to get local issuer certificate #979
I am facing this issue I searched on internet almost 2 days but my issue is not resolved can anyone help me Below I am attesting what error I am facing I did everything what I searched on net.
C:\Users\sKatare\Desktop\product\node_modules\oracledb>if not defined npm_config_node_gyp (node "C:\Users\sKatare\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
npm ERR! code ELIFECYCLE
npm ERR! A complete log of this run can be found in:
Thank you so much for your reply@bnoordhuis Yes I am behind the proxy I did everything.Still my issue is not resolve.I downgrade node version to 6.9.4 but still not resolve when i did npm config get I got this.Can you help me.
; cli configs
; userconfig C:\Users\sK.npmrc
; globalconfig C:\Users\sK\AppData\Roaming\npm\etc\npmrc
; builtin config undefined
; node bin location = C:\Program Files\nodejs\node.exe
Your company's proxy seems to use a certificate that is signed by a custom CA. Update the
Aside: I see you disabled
referenced this issue
Feb 20, 2018
This problem is caused by the download function in the install.js file for node-gyp.
WORKAROUND: To force node-gyp to ignore self-signed certificate, you need to modify the download function so that the requestOpts Object includes the following variable:
The install.js file can be found here:
The patched function looks like this:
Thanks again for your help (keep up the good work and be patient)
If people still come here with this error, this is what solved it for me:
Note: node-gyp configure can give an error gyp: binding.gyp not found, but it's ok.
I can clearly reproduce the behavior, if I reset my local environment:
Thanks for this, it has also worked for me on my Windows dev machine.
Any idea as to how/why this works?
I am having the same issue trying to install in a docker container and running node-gyp configure is breaking the build by returning a -1 error code (the binding.gyp not found issue you mentioned)