Getting "constructor(opt_error) {" error in error.js while running test in protractor
<p>I am getting </p>

<blockquote>
  <p>constructor(opt_error) {" error in my error.js under C:\Users\ ######
  \AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\error.js</p>
</blockquote>

<pre><code>class WebDriverError extends Error {
  /** @param {string=} opt_error the error message, if any. */
  **constructor(opt_error) {**
    super(opt_error);

  /** @override */
    this.name = this.constructor.name;
}
</code></pre>

<p>Any comment or suggestion will be appreciated. Thanks in advance.</p>