npm failed to install time with make not found error

后端 未结 5 1131
时光取名叫无心
时光取名叫无心 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 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.

提交回复
热议问题