title: Problem with Angular dependencies: @types/node: '{' or ';' expected
body: <p>I'm getting an error while executing &quot;ng serve&quot; in my application, it was an Angular 5 application (Angular 2 at the first stage), now I've upgraded it to Angular 8 (Also tried Angular 6 and 7 before).
  But after upgrading from Angular 5, I started getting errors while executing &quot;ng serve&quot;, the errors usually points to the @types/node, like:</p>
  <blockquote>
  <p>ERROR in ../node_modules/@types/node/assert.d.ts:8:68 - error TS1144: '{' or ';' expected.</p>
  </blockquote>
  <p>or:</p>
  <blockquote>
  <p>node_modules/@types/node/assert.d.ts:56:14 - error TS2300: Duplicate identifier 'assert'.</p>
  </blockquote>
  <p>I've tried upgrading different packages (Found some suggestions about upgrading some of the @types or Typescript versions in a couple of Github posts), using different versions of Angular/Typescript, updating node (Now version 14.16.1), even removing the @types from the DevDependencies, nothing worked so far.<br>
  Maybe I have some deprecated packages/functionallities or even code which is affecting the whole application while using Angular versions &gt;5.
  <br> This is my package.json (Without the @types):</p>
  <pre><code>&quot;dependencies&quot;: {
    &quot;@angular/animations&quot;: &quot;8.2.14&quot;,
    &quot;@angular/common&quot;: &quot;8.2.14&quot;,
    &quot;@angular/compiler&quot;: &quot;8.2.14&quot;,
    &quot;@angular/compiler-cli&quot;: &quot;8.2.14&quot;,
    &quot;@angular/core&quot;: &quot;8.2.14&quot;,
    &quot;@angular/forms&quot;: &quot;8.2.14&quot;,
    &quot;@angular/platform-browser&quot;: &quot;8.2.14&quot;,
    &quot;@angular/platform-browser-dynamic&quot;: &quot;8.2.14&quot;,
    &quot;@angular/platform-server&quot;: &quot;8.2.14&quot;,
    &quot;@angular/router&quot;: &quot;8.2.14&quot;,
    &quot;@angular/upgrade&quot;: &quot;8.2.14&quot;,
    &quot;angular2-notifications&quot;: &quot;2.0.0&quot;,
    &quot;bootstrap&quot;: &quot;3.3.7&quot;,
    &quot;bootstrap-datepicker&quot;: &quot;1.6.4&quot;,
    &quot;bootstrap-select&quot;: &quot;1.13.18&quot;,
    &quot;brace&quot;: &quot;0.11.1&quot;,
    &quot;core-js&quot;: &quot;3.0.1&quot;,
    &quot;font-awesome&quot;: &quot;4.7.0&quot;,
    &quot;jquery&quot;: &quot;3.4.1&quot;,
    &quot;lodash&quot;: &quot;4.17.21&quot;,
    &quot;ng2-file-upload&quot;: &quot;1.4.0&quot;,
    &quot;ng2-table&quot;: &quot;1.3.2&quot;,
    &quot;reflect-metadata&quot;: &quot;0.1.8&quot;,
    &quot;rxjs&quot;: &quot;6.6.7&quot;,
    &quot;rxjs-compat&quot;: &quot;6.0.0-rc.0&quot;,
    &quot;zone.js&quot;: &quot;~0.9.1&quot;
  
  },
  &quot;devDependencies&quot;: {
    &quot;@angular-devkit/build-angular&quot;: &quot;0.803.29&quot;,
    &quot;@angular/cli&quot;: &quot;8.3.29&quot;,
    &quot;@angular/language-service&quot;: &quot;8.2.14&quot;,
    &quot;angular2-template-loader&quot;: &quot;0.6.2&quot;,
    &quot;bestzip&quot;: &quot;1.1.4&quot;,
    &quot;codelyzer&quot;: &quot;5.0.1&quot;,
    &quot;copy-webpack-plugin&quot;: &quot;3.0.1&quot;,
    &quot;css-loader&quot;: &quot;0.28.0&quot;,
    &quot;extract-text-webpack-plugin&quot;: &quot;1.0.1&quot;,
    &quot;file-loader&quot;: &quot;0.11.1&quot;,
    &quot;html-loader&quot;: &quot;0.4.5&quot;,
    &quot;html-webpack-plugin&quot;: &quot;2.28.0&quot;,
    &quot;jasmine-core&quot;: &quot;3.4.0&quot;,
    &quot;jasmine-spec-reporter&quot;: &quot;4.2.1&quot;,
    &quot;karma&quot;: &quot;4.1.0&quot;,
    &quot;karma-chrome-launcher&quot;: &quot;2.2.0&quot;,
    &quot;karma-coverage-istanbul-reporter&quot;: &quot;1.2.1&quot;,
    &quot;karma-jasmine&quot;: &quot;1.1.0&quot;,
    &quot;karma-jasmine-html-reporter&quot;: &quot;0.2.2&quot;,
    &quot;null-loader&quot;: &quot;0.1.1&quot;,
    &quot;protractor&quot;: &quot;5.4.2&quot;,
    &quot;raw-loader&quot;: &quot;3.1.0&quot;,
    &quot;rimraf&quot;: &quot;2.7.1&quot;,
    &quot;style-loader&quot;: &quot;0.23.1&quot;,
    &quot;to-string-loader&quot;: &quot;1.1.6&quot;,
    &quot;ts-loader&quot;: &quot;5.4.5&quot;,
    &quot;ts-node&quot;: &quot;8.3.0&quot;,
    &quot;tslint&quot;: &quot;5.20.0&quot;,
    &quot;tslint-loader&quot;: &quot;3.5.4&quot;,
    &quot;typescript&quot;: &quot;3.4.5&quot;,
    &quot;url&quot;: &quot;0.11.0&quot;,
    &quot;url-loader&quot;: &quot;1.1.2&quot;
  }
  </code></pre>
  <p>Hopefully, someone could have faced a similar situation before and would be able to help me sorting this out, I've seen several posts with issues like this without a clear solution, so this may be helpful for more people,</p>
  <p>Thanks!</p>