every language that is able to use math can be used ;) .... the question should be along the lines "what are the pitfalls/problems of using node for ML"
-> missing libraries / community
medium.com/javascript-scene/how-to-build-a-neuron…
as an example starting point.
And than there is statistics and certain equations and that's all there is to ML we're just able to compute and aggregate enough data to have a better "statistical precision" that's why it's booming....