title: Unknown error: SyntaxError: Unexpected token 'export' on ng command
body: <p>I'm trying to learn Angular<br />
  I've followed the steps here: <a href="https://angular.io/guide/setup-local" rel="noreferrer">https://angular.io/guide/setup-local</a> to get it setup on Ubuntu 18.04.5 LTS</p>
  <p>When I try to create a new project with ng new I get an error:</p>
  <pre><code>$ node -v
  v14.12.0
  
  $ npm -v
  6.14.8
  
  $ ng new test
  Unknown error: SyntaxError: Unexpected token 'export'
  
  $ ng -v
  Unknown error: SyntaxError: Unexpected token 'export'
  </code></pre>
  <p>I installed it via <code>sudo npm install -g @angular/cli</code> which gave no errors.</p>
  <p>I've purged node <code>sudo apt-get purge nodejs</code> and reinstalled and removed ng <code>sudo npm remove -g @angular/cli</code> then reinstalled again <code>sudo npm install -g @angular/cli</code>, still get this error. Any ideas?</p>
  <p>There was an older version of nodejs on the system originally; I upgraded to 14.x. Export is part of ES6, perhaps it's related? I can't seem to figure it out.</p>