You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOCS] The latest version of python (3.12) doesn't support node-gyp #7161 #2966
Is there an existing issue for this?
I have searched the existing issues
This is a CLI Docs Problem, not another kind of Docs Problem.
This is a CLI Docs Problem.
Description of Problem
I am trying the below
npm install
However, I see the below error
npm ERR! ModuleNotFoundError: No module named 'distutils
Reason: The latest version of python (3.12) doesn't support node-gyp.
Potential Solution
node-gyp is currenlty supported only up to python version 3.11
Activity
cclauss commentedon Jan 23, 2024
Python 3.12 is fully supported on the current version of
node-gyp. Please see our automated tests.distutilslibrary #2888https://github.com/search?q=repo%3Anodejs%2Fnode-gyp+distutils&type=issues
harshajk commentedon Jan 24, 2024
Going through the comments, does running the below command help fix the distutils error?
Link for the comment - #2869 (comment)
python3 -m pip install packagingcclauss commentedon Jan 24, 2024
We just include all the
packagingfiles in thenode-gyprelease to avoid the support questions from Node.js users runningpip.I added a clarification at the top of #2869 (comment)