NotionX / NotionX/react-notion-x

node-gyp errors / python version

Open
#465 0 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5.4k
Forks
645
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing dependency installation with Python 3.11 or newer and inspect package.json's Yarn resolutions and the transitive node-gyp versions. Done would require a defined repository change that avoids incompatible old node-gyp dependencies; the issue currently documents a workaround rather than naming a requested change.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, python
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.