npm failed to install time with make not found error

后端 未结 5 1122
时光取名叫无心
时光取名叫无心 2020-12-07 09:51

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
         


        
5条回答
  •  Happy的楠姐
    2020-12-07 09:59

    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!

提交回复
热议问题