react-notion-x icon indicating copy to clipboard operation
react-notion-x copied to clipboard

node-gyp errors / python version

Open gubikmic opened this issue 2 years ago • 0 comments
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])

gubikmic avatar Apr 11 '23 08:04 gubikmic