Npm ERR! code CERT_HAS_EXPIRED

Hi Everybody,

I am new to the forum and not sure if this should go here …
But when compiling a program with the pipeline it is giving the error “npm ERR! Code CERT_HAS_EXPIRED”, does anyone know what may be happening?

Thanks.

Hi @mrgongora

What version of npm do you have?
Is this on GitLab.com or self-hosted?

Hi @balonik,

I’m not sure what version of the NPM can be “Latest”?
Occurs on our Gitlab host

The Error is causing connection to https://npm.sap.com. This is visible on the 3rd line.
It seems https://npm.sap.com has expired certificate and you can’t do much about it until SAP gets it fixed.

EDIT: You can change your NPM registry to https://registry.npmjs.org/ since npm.sap.com is redirecting to it anyway.