title: Local Node.js gives back "request is not defined", but online node website works perfectly
body: <p>I'm still new at node.js and I'm trying to get my small API to return data. As you can see <a href="https://repl.it/repls/FreshHastyGnudebugger" rel="nofollow noreferrer">here</a></p>
  
  <p>the code works perfectly on this online editor, but locally while running node it gives an error.</p>
  
  <p>My code: </p>
  
  <pre><code>var http = require('http');
  
  var options = { method: 'GET',
     url: 'https://eftelingapi.herokuapp.com/attractions',
     headers: 
    {'cache-control': 'no-cache'};
  
   request(options, function (error, response, body) {
     if (error) throw new Error(error);
  
     var jsonData = JSON.parse(body);
  
  
     console.log(jsonData.AttractionInfo[0]);
   });
  </code></pre>
  
  <p>The error:</p>
  
  <pre><code>ReferenceError: request is not defined
  at Object.&lt;anonymous&gt; (/Users/ricky/Desktop/eftelApp/app.js:9:1)
  at Module._compile (internal/modules/cjs/loader.js:707:30)
  at Object.Module._extensions..js (internal/modules/cjs/loader.js:718:10)
  at Module.load (internal/modules/cjs/loader.js:605:32)
  at tryModuleLoad (internal/modules/cjs/loader.js:544:12)
  at Function.Module._load (internal/modules/cjs/loader.js:536:3)
  at Function.Module.runMain (internal/modules/cjs/loader.js:760:12)
  at startup (internal/bootstrap/node.js:308:19)
  at bootstrapNodeJSCore (internal/bootstrap/node.js:878:3)
  </code></pre>
  
  <p>Hopefully anyone knows what's wrong in my code or what I can fix on my local node? I've installed the "request" package already, but that didn't seem to do it</p>