Error with npm install - a pre-gyp error
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
Using mac os, Running this command helped.
npm --build-from-source install node-pre-gyp
Remove package-lock.json
and node_modules
. Run npm install