To deploy your application, you have to compile it, and then host the JavaScript, CSS, and HTML on a web server. Built Angular applications are very portable and can live in any environment or served by any technology, such as Node, Java, .NET, PHP, and many others.
To build your application for production, run the following command:
Alias for ng build
.
ng build --prod
or
npm run build:prod
commands, you may have an older
Node.js version, try updating your Node.js to the latest LTS version
and then try again.