Download your .pac
file.
Open it in any editor and look for PROXY = "PROXY X.X.X.X:80;
.
You may have many proxies, copy any of them and run the following terminal commands:
npm config set proxy http://X.X.X.X:80
npm config set https-proxy http://X.X.X.X:80
Now you should be able to install any package!