title: Hitting npm error while running npm -version
body: <p>I need node10+ version for Angular 8 CLI and while using node10.16.2, I get the error shown below, and see the same error while running <code>npm build</code></p>
  
  <pre><code>npm-v10.16.2 -v
  /auto/sw/packages/node/v10.16.2/lib/node_modules/npm/bin/npm-cli.js:84
  let notifier = require('update-notifier')({pkg})
        ^^^
  </code></pre>
  
  <blockquote>
    <p>SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode<br>
    at exports.runInThisContext (vm.js:53:16)<br>
    at Module._compile (module.js:387:25)<br>
    at Object.Module._extensions..js (module.js:422:10)<br>
    at Module.load (module.js:357:32)<br>
    at Function.Module._load (module.js:314:12)<br>
    at Function.Module.runMain (module.js:447:10)<br>
    at startup (node.js:148:18)<br>
    at node.js:405:3  </p>
  </blockquote>
  
  <p>How to resolve this issue?</p>