NotionX / react-notion-x

Fast and accurate React renderer for Notion. TS batteries included. ⚡️
https://react-notion-x-demo.transitivebullsh.it
MIT License
4.75k stars 552 forks source link

node-gyp errors / python version #465

Open gubikmic opened 1 year ago

gubikmic commented 1 year ago

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 node-gyp@9.3.1)