Getting npm and ERR_SOCKET_TIMEOUT error While building custom docker image

Hi,
I am building custom docker image from n8n workflow.
But while building custom image, I am getting npm ERR_SOCKET_TIMEOUT error.
I am attaching the screenshot for exact error.
Please help me if anyone come across this kind of issue.

Thanks in advanced