Getting Node.io to work through a proxy

453 Views Asked by At

I'm trying to use node.io (web scraping module) through a proxy. I know it has untested support for proxies built in, but I cannot get it to work. Does anyone know how to get it working?

Thanks,

1

There are 1 best solutions below

1
On

You have to configure npm to make node to use a proxy server;

npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080'