I am using macos catalina 10.15.5 and i faced the same issues and all the above solutions didn’t worked for me. I was able to resolve this by running
npm i -g node-gyp@latest && npm config set node_gyp "/usr/local/lib/node_modules/node-gyp/bin/node-gyp.js"
Hope this helps people.