Npm throws 'must have a URL that starts with http: or https:' when installing @angular2-material packages
<p>I'm installing @angular2-material/core ( or any other module ) with npm wont let me install any of the modules.</p>

<pre><code>npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "@angular2-material/core"
npm ERR! node v5.11.1
npm ERR! npm  v3.8.6

npm ERR! must have a URL that starts with http: or https:
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     &lt;https://github.com/npm/npm/issues&gt;
</code></pre>

<p>I've tried : </p>

<pre><code> npm set registry https://registry.npmjs.org/ // https
</code></pre>

<p>OR </p>

<pre><code>npm set registry http://registry.npmjs.org/ // http 
</code></pre>

<p>But It wont work , I raised the issue with material guys but they're saying this is my local issue . </p>

<p>This is really killing me , there is no clue how to fix it at all.</p>

<p><a href="https://github.com/angular/material2/issues/720" rel="nofollow">https://github.com/angular/material2/issues/720</a></p>