As stated earlier, the following should work:
npm config set registry http://registry.npmjs.org/
Now, to add my word, you should also consider that downloading without ssl allows for a man-in-the-middle attack. This is just to add a warning to people who will read the message.
If you are a solo developer, you donβt need to upload files directly to http , but if I wanted to attack a company using node.js, I would consider the possibility of delivering malicious code via npm ... And such an attack without ssl will be much easier.
Creasixtine Sep 11 '14 at 0:13 2014-09-11 00:13
source share