When i try to install time on nodejs server i get the below error:
time@0.8.4 install /var/www/track/node_modules/time node-gyp rebuild gyp ERR! build error
I had the same problem using Docker, both on CENTOS 7 and RHEL 7 base images... do the following:
RUN yum install -y make gcc*
Worked perfectly for me!