use npm config set registry http://registry.npmjs.org/ so that npm requests for http url instead of https.