npm failed to install time with make not found error

后端 未结 5 1102
时光取名叫无心
时光取名叫无心 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条回答
  • 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!

    0 讨论(0)
  • 2020-12-07 10:05

    If you are using Windows and npm, install it through cmd (Administrator):

    npm install --global --production windows-build-tools

    0 讨论(0)
  • 2020-12-07 10:09

    Simple Solution:

    sudo apt-get install build-essential
    

    and try again

    0 讨论(0)
  • 2020-12-07 10:10

    Which OS are you using?

    If it's Ubuntu you'll need to install the build-essential package:

    $ sudo apt-get install build-essential
    

    Then try to install the package again.

    0 讨论(0)
  • 2020-12-07 10:14

    For Manjaro/Arch Linux you need to install make and gcc

    sudo pacman -S make gcc
    
    0 讨论(0)
提交回复
热议问题