title: Why ng new newApp producing unable to resolve dependency tree error
body: <p>I am trying to create a new angular app using the command
  <code> ng new app-name</code>.. But after running the command, it is showing the following in the command line.</p>
  <pre><code>Installing packages (npm)...npm ERR! code ERESOLVE
  npm ERR! ERESOLVE unable to resolve dependency tree
  npm ERR! 
  npm ERR! While resolving: angular-module@0.0.0
  npm ERR! Found: jasmine-core@3.6.0
  npm ERR! node_modules/jasmine-core
  npm ERR!   dev jasmine-core@&quot;~3.6.0&quot; from the root project
  npm ERR! 
  npm ERR! Could not resolve dependency:
  npm ERR! peer jasmine-core@&quot;&gt;=3.7.1&quot; from karma-jasmine-html-reporter@1.6.0
  npm ERR! node_modules/karma-jasmine-html-reporter
  npm ERR!   dev karma-jasmine-html-reporter@&quot;^1.5.0&quot; from the root project
  npm ERR! 
  npm ERR! Fix the upstream dependency conflict, or retry
  npm ERR! this command with --force, or --legacy-peer-deps
  npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
  npm ERR! 
  npm ERR! See /home/vazha/.npm/eresolve-report.txt for a full report.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /home/vazha/.npm/_logs/2021-05-07T05_12_55_121Z-debug.log
  ✖ Package install failed, see above.
  The Schematic workflow failed. See above.
  </code></pre>
  <p>How can we fix this issue?</p>