Based on the node-gyp README, update npm npm i npm -g, and will bring in a newer version of node-gyp.
Hint: if you are on windows perform npm install --global --production windows-build-tools from an elevated PowerShell or CMD.exe (run as Administrator).