LTS version of Node.js is recommended.
If none or low version of Node.js is installed, you need install the latest version of Node.js according to the following instructions:
For Windows: please visit https://nodejs.org/ to download the latest
LTS version of Node.js and then, install it using the default options.
For Mac: the same as Windows.
For Linux: using package manager to install is recommended, because in this way, you don't need to configure the
PATH variable. If you fail, you can also use the binary version of Node.js directly.
You can execute
node -v in shell to check if the expected version of Node.js is installed successfully:
$ node -vv8.9.4