In the npm documentation, it is stated that the certfile option can be used to specify the path to a certificate file. Interestingly, I kept encountering the following error:
WARN GET error (UNABLE_TO_VERIFY_LEAF_SIGNATURE). Will retry in 10 seconds. 2 retries left.
After spending some time troubleshooting, I tried using cafile instead (just out of curiosity), and it worked 😮
In the npm documentation, it is stated that the
certfile
option can be used to specify the path to a certificate file. Interestingly, I kept encountering the following error:WARN GET error (UNABLE_TO_VERIFY_LEAF_SIGNATURE). Will retry in 10 seconds. 2 retries left.
After spending some time troubleshooting, I tried using cafile instead (just out of curiosity), and it worked 😮
My user .npmrc now looks like this:
So, is the documentation incorrect, or could this be a bug?
Versions i used:
Edit: Issue id #1337 time to party 🥳🥳