Apparently Python deprecated some functions that PyNode is using:
Py_DEPRECATED(3.9) PyAPI_FUNC(int) PyEval_ThreadsInitialized(void);
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
Full gyp error log is here:
2023-05-29T21_24_06_268Z-debug.log