Node NPM proxy authentication - how do I configure it? : <p>I'm new to Node and trying to install TypeScript using the following command:</p>

<pre><code>npm install -g typescript
</code></pre>

<p>I get the following error:</p>

<pre><code>if you are behind a proxy, please make sure that the 'proxy' config is set properly.
</code></pre>

<p>I have set my proxy using the following commands:</p>

<pre><code>npm config set proxy http://Username:Pa55w0rd@proxyhostname
npm config set https-proxy http://Username:Pa55w0rd@proxyhostname
</code></pre>

<p>and tried this also:</p>

<pre><code>npm config set proxy http://"ninjadev:5trongP@ssw0rd"@proxy.some-bigcorp.com
npm config set https-proxy http://"ninjadev:5trongP@ssw0rd"@proxy.some-bigcorp.com
</code></pre>

<p>But none of them work. I am working behind a copmpany proxy with authentication, so I think this is stopping me from connecting. I have added my username and password and this also didn't work.</p>

<p>Does anyone have any idea how I can connect to npm whilst using the company proxy and authentication?</p>

<p>Thanks</p>
