On our v7.2 system, we previously had node v10.16.1 installed. I’ve used yum to install nodejs12 (v12.8.1) which has created a new instance rather than upgrading the old. There are several issues with this however.
Firstly, it doesn’t update the /QOpenSys/pkgs/bin/node symbolic link to use nodejs12, it still points to nodejs10. Issuing node -v shows 10.16.1 still. If I erase nodejs10 and then install nodejs12, the symbolic link reflects nodejs12 correctly as shown:
Object link . . . . . : /QOpenSys/pkgs/bin/node
Content of Link . . . : /QOpenSys/pkgs/lib/nodejs12/bin/node
After doing this however, node 12 doesn’t work in the IBM i pase environment. If I use it in putty, it seems to work, but in QP2TERM, I get the following error:
: ../src/node.cc:560:void node::PlatformInit(): Assertion `(err) == (0)' failed.