Nodejs on Centos7

I’ve been trying for a couple of hours now to install nodejs ver 14 on Centos 7 without any luck.

When I try yum, it install the version 10. I need at least 12 to be able to use fs.readdir(), but I haven’t found a way to achieve it.

I have found several documents on how to do it, but none of them work.

Please advise.