title: Can't use URL module on Node.js, cannot call method 'parse' of undefined
body: <p>I'm trying to get parameters from a URL, for example:</p>
  
  <pre><code>http://localhost:8888/?name=test
  </code></pre>
  
  <p>To get <code>name</code> parameter I saw some samples where they use the <code>url</code> module like this:</p>
  
  <pre><code>var url = require('url');
  
  var urlParts = url.parse(request.url, true);
  var query = urlParts.query;
  </code></pre>
  
  <p>So, first I ran this command <code>npm install url</code>, also the dependency is on the <code>package.json</code> file, but I always get this error:</p>
  
  <pre><code>TypeError: Cannot call method 'parse' of undefined
  at C:\Users\Administrator\git\test\app.js:28:7
  </code></pre>
  
  <p>Anyone has faced this problem before?</p>