Started trying few things with nodejs. Nodejs is the best thing that could happen to a web programmer since one needs to learn only javascript to deal with database, server, client(if web). I ran into the proxy issue since my computer is behind a proxy wall.
Solution is
create a entry in environment variables
HTTP_PROXY=http://proxyurl:port
then switch off ssl with this command prompt
npm config set strict-ssl false
Hope this helps 🙂