No, that command is trying to revoke a certificate that is expired. Just like the error message explains. Once a cert is expired it is not valid for use and cannot be revoked.
You should ask the NPM support people how to stop making that request.
I know the error message refers you here. NPM uses a program called Certbot for its cert requests. Certbot always refers people here for any kind of problem.
But, this is some kind of NPM configuration / setup issue. Best to ask them what to do.