Npm installa dependencies to be available for an online website

I’d like to kindly ask how to use a webgl app needing certain npm dependencies “running” on an online server.
I’m new to webgl and three.js and js apps in general and I’d love to kindly ask how to let it work a bundle like the following

on a server hosting a website and so to have it available online.
Do I need to do an equivalment process like the " npm install " somewhere in the database of my server provider?
Thanks so much and sorry if the question looks too banal and rude :blush: