this solved the issue:
my ~/.npmrc has
ignore-scripts=true
basically you can switch it to false and try remove the node_modules and then reinstall node-rdkafka again.
the other option go to node-rdkafka package: "cd ./node_module/node-rdkafka" and run the following command
node-gyp configure && npm run build