I had a similar problem on windows, installing node-gyp globally removed those errors.
# before installing node-gyp on windows
npm install --global --production windows-build-tools
# install node-gyp globally
npm install -g node-gyp
I had a similar problem on windows, installing node-gyp globally removed those errors.
# before installing node-gyp on windows
npm install --global --production windows-build-tools
# install node-gyp globally
npm install -g node-gyp