title: Node.js, NPM, proxy and node_modules
body: <p>I am trying to install node packages but my network won't let me connect. I get the standard,</p>
  
  <pre><code>npm ERR! network getaddrinfo ENOTFOUND
  </code></pre>
  
  <p><strong>I understand that this is because I am on a corporate network.</strong> However,  I'm not very familiar with proxies and as far as I am aware, I don't have access to one so I'm not sure how I can progress with NPM. Any helpful and related thoughts about this are warmly received!</p>
  
  <p>As a work around, using my other machine, I have emailed myself with the node modules I require. These node modules were installed using NPM while not on the corporate network.</p>
  
  <p>However, despite the fact that I have put the modules in node_modules/ alongside my test_server.js file, I still receive,</p>
  
  <pre><code>C:\Users\JT15900\Documents\nodeServer&gt;node test_server.js
  
  module.js:340
      throw err;
            ^
  Error: Cannot find module 'knex' ... etc.
  </code></pre>
  
  <p>To be really clear, test_server.js sits alongside node_modules/ in the same directory. Inside node_modules/ I have put the various module folders like 'express' and 'knex', etc.</p>
  
  <p>Why is my node script unable to find these modules and how to I correct it?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p><a href="https://superuser.com/questions/346372/how-do-i-know-what-proxy-server-im-using">I used a post over at superuser</a> to help discover my proxy settings. I then configured Node NPM proxy settings as outlined elsewhere and presented in the solution.</p>