I am behind a corporate proxy and cannot install my dependencies in a jenkins build. npm i yields the error SELF_SIGNED_CERT_IN_CHAIN when installing a specific package.
I have looked on stackoverflow and have found subpar workarounds with no explanations. Some workarounds include using http instead of https, or turning off ssl. I am not looking for a workaround.
I would appreciate an explanation of why I am seeing this error and the right way to fix it.