When running yum install nodejs in Centos 7.4, I see many packages that, to my knowledge, have nothing to do with nodejs.
Here is part of the list of packages that Yum downloads:
nginx | 2.9 kB 00:00 nginx / primary_db | 41 kB 00:00 remi-php71 | 3.0 kB 00:00 remi-php71 / primary_db | 207 kB 00:00
Do the nodes really need those packages? If not, why are they downloaded?