On Mac OS X (Intel) v12.3.1 to make compilation of native modules work, I had to add the following to my .npmrc:
python=/usr/local/bin/python3
It took me quite a bit of time to find this trick.
This is with:
- node.js v16.14.0
- npm v8.5.5
Why is this needed?
Why can't node-gyp figure it out to try python3 instead?
Should we document this?