Node 10 - `node-gyp rebuild` error during npm install
Use NVM
for managing node. It is really helpful. I had the same error but solved it by using the latest Node LTS version. That can be done with NVM easily by a single command.
nvm install --lts
Resolved the issue by updating npm to latest version & running npm rebuild.
without knowing the actual node-gyp error, make sure you've installed the node-gyp dependencies for your platform.