I think it's more that existing projects are in Java, so I have experience in Java, Java works, so why learn something else? Just start the next project in Java and it'll just work.
And, yes, that's often the reason parts of the world move to other things. Hopefully, someone saw an actual problem with the stack they were using, saw a solution elsewhere and moved. However, anecdotally, I often see people deciding emotionally that the Hip Cool New Thing is The Right Way To Go and that's what they use ... and then discover the warts are bigger, or the problems aren't actually solved, or the only thing different is the vocabulary.
2 years ago i'd say no but increasingly every new concept/tech stack i encounter has npm embedded in it to access a js library. same with python being used for automation/low level scripting.
unless you set out with the mindset of NO NODE/NO PYTHON, it tends to worm it's way into the project coz someone on the team thought it was convenient
Npm is prevalent in client side for sure, many non trivial ui apps use react/redux or similar and use npm for package mgmt. On the server side, it's a different story. Java still is the go-to language in a lot of organizations. Python for automation, machine learning, and provisioning, yes, I agree. These areas were never Java to begin with.
This may change,though, what with Oracle's license changes.