"install": "node-pre-gyp install --fallback-to-build" code example
Example: node-pre-gyp install --fallback-to-build --library=static_library
i have tried upgrading node-gyp:
sudo npm install -g node-gyp
It worked for me.
I find the solution here, I hope it can help.