btholt / btholt/mcp-issue-tracker

npm install fails for backend on recent python versions

Open
#2 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
117
Forks
48
PR merge metrics
No merged PRs in 30d

Description

The following node build error occurs with python 3.13 on MacOS Sequoia installed and running npm install in /backend. It appears to be due to compilation of better-sqlite. I tried installing python setuptools but that didn't resolve it.

```
m-mbp frontend git:(main) ✗ cd ../backend
➜lukem-mbp backend git:(main) ✗ npm i
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm warn deprecated npmlog@6.0.2: This package is no longer supported.
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated are-we-there-yet@3.0.1: This package is no longer supported.
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated gauge@4.0.4: This package is no longer supported.
npm error code 1
npm error path /Users/myname/Courses/frontendmasters/intro-to-mcp/mcp-issue-tracker/backend/node_modules/@better-auth/cli/node_modules/better-sqlite3
npm error command failed
npm error command sh -c prebuild-install || node-gyp rebuild --release
npm error (node:20208) [DEP0176] DeprecationWarning: fs.R_OK is deprecated, use fs.constants.R_OK instead
npm error (Use `node --trace-deprecation ...` to show where the warning was created)
npm error prebuild-install warn install No prebuilt binaries found (target=24.6.0 runtime=node arch=arm64 libc= platform=darwin)
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@8.4.1
npm error gyp info using node@24.6.0 | darwin | arm64
npm error (node:20210) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
npm error (Use `node --trace-deprecation ...` to show where the warning was created)
npm error gyp info find Python using Python version 3.13.7 found at "/opt/homebrew/opt/python@3.13/bin/python3.13"
npm error gyp info spawn /opt/homebrew/opt/python@3.13/bin/python3.13
npm error gyp info spawn args [
npm error gyp info spawn args '/Users/myname/Courses/frontendmasters/intro-to-mcp/mcp-issue-tracker/backend/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/myname/Courses/frontendmasters/intro-to-mcp/mcp-issue-tracker/backend/node_modules/@better-auth/cli/node_modules/better-sqlite3/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/myname/Courses/frontendmasters/intro-to-mcp/mcp-issue-tracker/backend/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/myname/Library/Caches/node-gyp/24.6.0/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/Users/myname/Library/Caches/node-gyp/24.6.0',
npm error gyp info spawn args '-Dnode_gyp_dir=/Users/myname/Courses/frontendmasters/intro-to-mcp/mcp-issue-tracker/backend/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/Users/myname/Library/Caches/node-gyp/24.6.0/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/Users/myname/Courses/frontendmasters/intro-to-mcp/mcp-issue-tracker/backend/node_modules/@better-auth/cli/node_modules/better-sqlite3',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error Traceback (most recent call last):
npm error File "/Users/myname/Courses/frontendmasters/intro-to-mcp/mcp-issue-tracker/backend/node_modules/node-gyp/gyp/gyp_main.py", line 42, in
npm error import gyp # noqa: E402
npm error ^^^^^^^^^^
npm error File "/Users/myname/Courses/frontendmasters/intro-to-mcp/mcp-issue-tracker/backend/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in
npm error import gyp.input
npm error File "/Users/myname/Courses/frontendmasters/intro-to-mcp/mcp-issue-tracker/backend/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in
npm error from distutils.version import StrictVersion
npm error ModuleNotFoundError: No module named 'distutils'
npm error gyp ERR! configure error
npm error gyp ERR! stack Error: `gyp` failed with exit code: 1
npm error gyp ERR! stack at ChildProcess.onCpExit (/Users/myname/Courses/frontendmasters/intro-to-mcp/mcp-issue-tracker/backend/node_modules/node-gyp/lib/configure.js:259:16)
npm error gyp ERR! stack at ChildProcess.emit (node:events:508:28)
npm error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
npm error gyp ERR! System Darwin 24.6.0
npm error gyp ERR! command "/opt/homebrew/Cellar/node/24.6.0/bin/node" "/Users/myname/Courses/frontendmasters/intro-to-mcp/mcp-issue-tracker/backend/node_modules/.bin/node-gyp" "rebuild" "--release"
npm error gyp ERR! cwd /Users/myname/Courses/frontendmasters/intro-t
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.