react-notion-x
react-notion-x copied to clipboard
node-gyp errors / python version
trafficstars
There are dependencies of dependencies requiring old versions of node-gyp which are incompatible with Python >= 3.11.
Since I wasted too much time on this I'm putting this here in case it helps anyone. Adding this to package.json forces yarn to use your specified version instead of the one the packages require.
"resolutions": {
"**/node-gyp": ">=8.3",
"**/@npmcli/node-gyp": "npm:node-gyp@>=8.3"
},
This requires Node 16. (I'm using Node 18 with [email protected])