title: npm install error: ssh: connect to host github.com port 22: Connection timed out
body: <p>I am trying to install gulp 4 in my project (Windows 7 machine).
  for that dependency, my <code>package.json</code> looks like:</p>
  
  <pre class="lang-json prettyprint-override"><code>"gulp": "gulpjs/gulp#4.0"
  </code></pre>
  
  <p>When I run <code>npm install gulp</code> I get this error:</p>
  
  <pre><code>npm ERR! ssh: connect to host github.com port 22: Connection timed out
  npm ERR! fatal: Could not read from remote repository.
  npm ERR!
  npm ERR! Please make sure you have the correct access rights
  npm ERR! and the repository exists.
  npm ERR!
  npm ERR!
  npm ERR! If you need help, you may report this error at:
  npm ERR!     &lt;https://github.com/npm/npm/issues&gt;
  npm verb exit [ 1, true ]
  </code></pre>
  
  <p>But when I try to clone a repository from GitHub it works fine,</p>
  
  <pre><code>git clone https://github.com/gulpjs/gulp.git
  </code></pre>
  
  <p>I am running these commands behind a corporate firewall.So I have my proxies set up in my environment variables.</p>
  
  <pre><code>http_proxy : http://proxy.company.com:port
  https_proxy : https://proxy.company.com:port
  </code></pre>
  
  <p>I also tried setting:</p>
  
  <pre><code>npm config set proxy http://proxy.company.com:8080
  
  npm config set https-proxy http://proxy.company.com:8080
  </code></pre>
  
  <p>I tried the same in environment variables as well.</p>
  
  <p>I also tried:</p>
  
  <pre><code>npm config set proxy http://login:pass@proxy.company.com:port
  
  npm config set https-proxy http://login:pass@proxy.company.com:port
  </code></pre>
  
  <p>None of the above seems to work. How can I fix this?</p>