Netlify-cli cannot login - local issuer certificater

Afer I installed the netlift-cli I followed the instruction use npm install -g netlify-cli and the I run netlify login.

Logging into your Netlify account…
then nothing happened just stuck there:

FetchError: request to https://api.netlify.com/api/v1/oauth/tickets?client_id=d6f37de6614df7ae58664cfca524744d73807a377f5ee71f1a254f78412e3750 failed, reason: unable to get local issuer certificate
Code: UNABLE_TO_GET_ISSUER_CERT_LOCALLY

And cannot login, what might be the issue and how can i fix this?

howdy @soujanya-nekkenti ,
sorry to hear about the trouble! Which version of the CLI are you using?

We have similar issues when serverless function are called locally. They do work after deployment, but not locally.
We are using cli version 3.3.0

The current latest is CLI v12, I wonder why you’re using v3.

Sorry @hrishikesh we looked at the wrong package in our config we are actually using v12, but the issue still persists.

Let’s continue in your thread @MaharashtraMandalDen: