Here is a part of code I use to direct my server.js file to angular dist folder, which was created after npm build
// Create link to Angular build directory
var distDir = __dirname + "/dist/";
app.use(express.static(distDir));
I fixed it by changing
"/dist/"
to "./dist/"