I got error message like following when I try create .gitignore file for node.
An unexpected error occurred.
{ Error: unable to get local issuer certificate
at TLSSocket.
If there is any workaround, please let me know. could you explain of process and when use certi?
thanks in advance.
What exact command are you running?
I get the same thing. I have tried running it as:
gitignore -types npx gitignore -types
Fetching available types... An unexpected error occurred. Error: unable to get local issuer certificate at TLSSocket.onConnectSecure (node:_tls_wrap:1535:34) at TLSSocket.emit (node:events:513:28) at TLSSocket._finishInit (node:_tls_wrap:949:8) at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:730:12) { code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY' }
But regardless of the command, I get the same error message. So, if I run gitignore node, I get the same error.