I'm skeptical about extrapolating too much from a JavaScript example. That ecosystem looks nothing like the rest of the software development world.
Erlang has been around in a niche role for >30 years and still going strong, even stronger now that Elixir has reinvigorated interest in the platform.