use the environment variable "http_proxy" 

Most standard utilities reference the http_proxy environment variable rather "PROXY" (including node.js's npm)