Getting Node.io to work through a proxy server

I am trying to use node.io (web scraping module) through a proxy. I know that it has unverified support for embedded proxies, but I cannot get it to work. Does anyone know how to make it work?

Thanks,

+6
source share
1 answer

You need to configure npm in order for 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 '

0
source

Source: https://habr.com/ru/post/890403/


All Articles