Python is pretty simple to Hello World (web) in with an
python -m SimpleHTTPServer 8000. Then edit and refresh away.
You’re right though that the framework de jour, Node.JS, has a dizzying number of dependencies for even the most basic Hello World. I wouldn’t ask new programmers to start there though.
A new programmer has quite a range of tools and systems to help them learn. You can do everything online in your browser and never need to install a single dev dependency. macOS, Ubuntu, and Windows all come with the basics for local development and localhost:8000.
While Stackoverflow has a newbie problem it is still loaded with existing answers to common questions new programmers will have. It’s a much better resource than what you and I had when we were starting out.
Possibly the area to improve on is expectations. Do we expect new programmers to have created complex SPA web apps in their first weeks or months? It seems like many coding courses end up with that expectation. Pumping out “React Ready Juniors”. Or now they expect to have a RNN after a week’s coding.
Learning takes time, learning requires dead ends and butting heads against brick walls, learning to be OK with frustrating situations and learning to debug your way out of it.