I have Zscaler on my Windows 11 machine. To make npm work, I did 2 things:
Exported "ZScaler Root CA" certificate in ".cer" format with Certificates app that is part of Windows
Added environment variable NODE_EXTRA_CA_CERTS="C:\Certificates\ZScalerRootCert.cer" (location and the name of the file can be anything)
Restart your terminal after this.