title: Google OAuth TypeError: Cannot read property 'OAuth2' of undefined
body: <p>I am trying to build an App using Google Calendar API. I am following the guide:<a href="https://developers.google.com/calendar/quickstart/nodejs" rel="nofollow noreferrer">https://developers.google.com/calendar/quickstart/nodejs</a>. However, when, I run the project I am getting the below error</p>
  
  <p>TypeError: Cannot read property 'OAuth2' of undefined</p>
  
  <pre><code>TypeError: Cannot read property 'OAuth2' of undefined
  at Object.&lt;anonymous&gt; (
  at Module._compile (module.js:660:30)
  at Object.Module._extensions..js (module.js:671:10)
  at Module.load (module.js:573:32)
  at tryModuleLoad (module.js:513:12)
  at Function.Module._load (module.js:505:3)
  at Function.Module.runMain (module.js:701:10)
  at startup (bootstrap_node.js:194:16)
  at bootstrap_node.js:618:3
  </code></pre>
  
  <p>Did someone faced similar issues</p>