title: I have a problem in angular when using the command npm run build: ssr
body: <p>I have a project in angular 10, and I wanted to add universal angular. everything ok when executing the command (ng add @ nguniversal / express-engine), but then when executing build ssr I get an error in console. this is my current configuration in my package.json</p>
  <pre><code>{
    &quot;name&quot;: &quot;myproject&quot;,
    &quot;version&quot;: &quot;0.0.1&quot;,
    &quot;scripts&quot;: {
      &quot;ng&quot;: &quot;ng&quot;,
      &quot;start&quot;: &quot;ng serve&quot;,
      &quot;build&quot;: &quot;ng build&quot;,
      &quot;test&quot;: &quot;ng test&quot;,
      &quot;lint&quot;: &quot;ng lint&quot;,
      &quot;e2e&quot;: &quot;ng e2e&quot;,
      &quot;dev:ssr&quot;: &quot;ng run myproject:serve-ssr&quot;,
      &quot;serve:ssr&quot;: &quot;node dist/myproject/server/main.js&quot;,
      &quot;build:ssr&quot;: &quot;ng build --prod &amp;&amp; ng run myproject:server:production&quot;,
      &quot;prerender&quot;: &quot;ng run myproject:prerender&quot;
    },
    &quot;private&quot;: true,
    &quot;dependencies&quot;: {
      &quot;@angular/animations&quot;: &quot;~10.0.2&quot;,
      &quot;@angular/cdk&quot;: &quot;~10.0.1&quot;,
      &quot;@angular/common&quot;: &quot;~10.0.2&quot;,
      &quot;@angular/compiler&quot;: &quot;~10.0.2&quot;,
      &quot;@angular/core&quot;: &quot;~10.0.2&quot;,
      &quot;@angular/forms&quot;: &quot;~10.0.2&quot;,
      &quot;@angular/platform-browser&quot;: &quot;~10.0.2&quot;,
      &quot;@angular/platform-browser-dynamic&quot;: &quot;~10.0.2&quot;,
      &quot;@angular/platform-server&quot;: &quot;~10.0.2&quot;,
      &quot;@angular/router&quot;: &quot;~10.0.2&quot;,
      &quot;@ng-select/ng-option-highlight&quot;: &quot;0.0.4&quot;,
      &quot;@ng-select/ng-select&quot;: &quot;^3.7.1&quot;,
      &quot;@nguniversal/express-engine&quot;: &quot;^10.0.1&quot;,
      &quot;angular2-text-mask&quot;: &quot;^9.0.0&quot;,
      &quot;core-js&quot;: &quot;^3.6.1&quot;,
      &quot;crypto-js&quot;: &quot;^3.3.0&quot;,
      &quot;express&quot;: &quot;^4.15.2&quot;,
      &quot;ng2-currency-mask&quot;: &quot;^5.3.1&quot;,
      &quot;ngx-store&quot;: &quot;^2.1.0&quot;,
      &quot;popper.js&quot;: &quot;1.16.0&quot;,
      &quot;rxjs&quot;: &quot;~6.5.5&quot;,
      &quot;tslib&quot;: &quot;^2.0.0&quot;,
      &quot;zone.js&quot;: &quot;~0.10.3&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@angular-devkit/build-angular&quot;: &quot;~0.1000.0&quot;,
      &quot;@angular/cli&quot;: &quot;~10.0.0&quot;,
      &quot;@angular/compiler-cli&quot;: &quot;~10.0.2&quot;,
      &quot;@angular/language-service&quot;: &quot;~10.0.2&quot;,
      &quot;@nguniversal/builders&quot;: &quot;^10.0.1&quot;,
      &quot;@types/express&quot;: &quot;^4.17.0&quot;,
      &quot;@types/jasmine&quot;: &quot;~3.3.8&quot;,
      &quot;@types/jasminewd2&quot;: &quot;~2.0.3&quot;,
      &quot;@types/node&quot;: &quot;^12.11.1&quot;,
      &quot;codelyzer&quot;: &quot;^5.1.2&quot;,
      &quot;jasmine-core&quot;: &quot;~3.5.0&quot;,
      &quot;jasmine-spec-reporter&quot;: &quot;~5.0.0&quot;,
      &quot;karma&quot;: &quot;~5.0.0&quot;,
      &quot;karma-chrome-launcher&quot;: &quot;~3.1.0&quot;,
      &quot;karma-coverage-istanbul-reporter&quot;: &quot;~3.0.2&quot;,
      &quot;karma-jasmine&quot;: &quot;~3.3.0&quot;,
      &quot;karma-jasmine-html-reporter&quot;: &quot;^1.5.0&quot;,
      &quot;protractor&quot;: &quot;~7.0.0&quot;,
      &quot;ts-node&quot;: &quot;~8.3.0&quot;,
      &quot;tslint&quot;: &quot;~6.1.0&quot;,
      &quot;typescript&quot;: &quot;^3.9.5&quot;
    }
  }
  </code></pre>
  <p>I have been searching for the solution to this problem but could not find the answer. What am I doing wrong? What configuration do I need?</p>
  <pre><code>ERROR in The target entry-point &quot;@nguniversal/express-engine&quot; has missing dependencies:
   - @angular/platform-server
  
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! myproject@0.1.0 build:ssr: `ng build --prod &amp;&amp; ng run myproject:server:production`
  npm ERR! Exit status 1
  npm ERR!
  npm ERR! Failed at the myproject@0.1.0 build:ssr script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     C:\Users\jfern\AppData\Roaming\npm-cache\_logs\2020-07-03T23_42_56_145Z-debug.log
  </code></pre>