Or average Joe Teenager installs a Linux distribution, which then provides bash, perl, awk, Python, C, C++, often Tcl/Tk, etc. and usually includes one or more editors for creating source files. All without "pull[ing] in hundreds of NPM dependencies from shady places"
That's a lot of work just to show a "hello world".
The point was that it's hard to do it with the thing you already have. Of course it's easier if you just get a new thing -- which installing a new OS corresponds to in the software world.