I created simple Angular app and then tried to create a server-side app using Angular Universal. However, in every single tutorial the first step is to run npm run build:ssr which in my case throws an error:
npm ERR! missing script: build:ssr
I must be missing something obvious but I can't figure out what. I checked StackOverflow for this issue, there is one, however, without accepted answer. One hint would be to check the Angular/Angular Universal version, but these seems to be aligned for me:
"@angular/common": "~7.2.0",
"@angular/compiler": "~7.2.0",
"@angular/core": "~7.2.0",
"@angular/forms": "~7.2.0",
"@angular/http": "^7.2.14",
"@angular/platform-browser": "~7.2.0",
"@angular/platform-browser-dynamic": "~7.2.0",
"@angular/platform-server": "^7.2.14",
"@angular/router": "~7.2.0",
"@ng-toolkit/universal": "^7.1.2",
"@nguniversal/common": "^7.1.1",
"@nguniversal/express-engine": "^7.1.1",
"@nguniversal/module-map-ngfactory-loader": "^7.1.1",
Any help would be much appreciated. Thanks!