The message you are responding to is four-and-a-half years old, and much has changed since then. Version 2 was not designed with node.js in mind, and so it was not easy to use outside a browser. The
mathjax-node repository holds a version that can be used from node, but it is clunky, slow, and fragile.
Version 3 was redesigned from the ground up, and was developed to be able to be used in node as well as the browser. There are two npm packages for it, mathjax and mathjax-full, depending on your needs. You can see examples of using MathJax v3 in node in the
MathJax-demos-node repository.
Davide