On your local development machine do an ng build --prod
or ng build --prod --aot
This will build your app into the dist folder. Copy the contents of your dist folder to the public directory of your shared hosting.
Depending on your hosting you may need to configure a web server (nginx, Apache, IIS, etc) to serve your files. Don't run ng serve on your shared hosting.
Unless you plan on running your application in Universal mode, where it rerenders pages server side, do not copy your entire app to your shared host. Do not do an npm install on your shared host. Just copy the built application files in the dist folder.