Check the error you get while executing: node-gyp rebuild
If it is a permission denied then retry the command with sudo.
If the error is still persistent execute the following:
xcode-select –install
Check the error you get while executing: node-gyp rebuild
If it is a permission denied then retry the command with sudo.
If the error is still persistent execute the following:
xcode-select –install