title: Nodejs: SyntaxError Exception - "Unexpected token new" faced while trying to require ajv.js
body: <p>Exception occurred while trying to require Ajv module.</p>
  
  <pre><code>var Ajv = require('C:/../node_modules/ajv/lib/ajv.js')
  </code></pre>
  
  <p>Exception occurred in vm.js at </p>
  
  <pre><code>function createScript(code, options) {
      return new Script(code, options);
  }
  
  Exception has occurred: SyntaxError
  SyntaxError: Unexpected token new
      at createScript (vm.js:74:10)
      at Object.runInThisContext (vm.js:116:10)
      at Module._compile (module.js:533:28)
      at Object.Module._extensions..js (module.js:580:10)
      at Module.load (module.js:503:32)
      at tryModuleLoad (module.js:466:12)
      at Function.Module._load (module.js:458:3)
      at Module.require (module.js:513:17)
      at require (internal/module.js:11:18)
      at Object.&lt;anonymous&gt; (C:\myFile.js:1:73)
  </code></pre>
  
  <p>Any suggestions to correct this?</p>