Pipeline Error - reason: connect ECONNREFUSED while npm install in pipeline

Hello,
I have a GitLab pipeline for tests and build node angular applications. In all these pipelines I have used “npm i” command for installing node dependencies. Unexpectedly I am getting this error for one of my npm package hosted with azure CDN from yesterday. On a local machine, I am able to install my package from the same URL without any error.

Error Logs -

*npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED

npm ERR! FetchError: request to {url_to_valid_npm_package} failed, reason: connect ECONNREFUSED 152.195.19.97:443

npm ERR! at ClientRequest. (/usr/lib/node_modules/npm/node_modules/node-fetch-npm/src/index.js:68:14)*

This job running on a personal GitLab runner installed in azure Kubernetes.

Heya,

Is that all that you got in the logs?

Have you tried these commands :

npm config set proxy null
npm config set https-proxy null
npm config set registry http://registry.npmjs.org/

From stackerflow https://stackoverflow.com/questions/42371380/npm-err-error-connect-econnrefused