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!
If you are using Windows and npm, install it through cmd (Administrator):
npm install --global --production windows-build-tools
Simple Solution:
sudo apt-get install build-essential
and try again
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.
For Manjaro/Arch Linux you need to install make and gcc
sudo pacman -S make gcc