Important!
Don't have yum?
Documentation by IBM on how to install the yum opensource package manager to an IBM i can be found here.
Installing Node.js with yum Package Manager
If yum is properly set up on your system, you can install Node.js by running the following command in a PASE shell:
yum install nodejs8
If you would like to install Node.js version 10 instead, you can simply replace nodejs8 with nodejs10 in the command.