use below code: // Serve static files from the "public" folder app.use(express.static("../public"));
// basically you have to use './' for same directory path '../' for previous directory path.