-
Notifications
You must be signed in to change notification settings - Fork 191
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Found a bug? Please fill out the sections below. 👍
Issue Summary
A summary of the issue. This needs to be a clear detailed-rich summary.
npm install
fails to install sqlite3 in Vercel build pipeline due to missing 'distutils' which was removed in Python 3.12.
Steps to Reproduce
- Click on "Deploy with Vercel" button in README.
- Clone to own repository and fill out environment variables.
- Click "Deploy" and deployment fails.
[16:02:10.660] Cloning github.com/williamhaw/my-boxyhq (Branch: main, Commit: f44dba8)
[16:02:11.250] Previous build caches not available
[16:02:13.464] Cloning completed: 2.804s
[16:02:14.001] Running build in Washington, D.C., USA (East) – iad1
[16:02:14.291] Running "vercel build"
[16:02:14.678] Vercel CLI 41.5.0
[16:02:15.069] Warning: Detected "engines": { "node": ">=18.14.2" } in your `package.json` that will automatically upgrade when a new major Node.js Version is released. Learn More: http://vercel.link/node-version
[16:02:15.092] Installing dependencies...
[16:02:23.475] npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
[16:02:24.580] npm warn deprecated [email protected]: This package is no longer supported.
[16:02:25.216] npm warn deprecated [email protected]: This package is deprecated. Use the optional chaining (?.) operator instead.
[16:02:25.277] npm warn deprecated [email protected]: This package is deprecated. Use require('node:util').isDeepStrictEqual instead.
[16:02:25.713] npm warn deprecated [email protected]: 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.
[16:02:26.000] npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
[16:02:26.530] npm warn deprecated [email protected]: This package is no longer supported.
[16:02:27.191] npm warn deprecated [email protected]: This package is no longer supported.
[16:02:28.910] npm warn deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
[16:02:31.485] npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
[16:02:57.927]
[16:02:57.927] > [email protected] prepare
[16:02:57.928] > npm run prepare:npm && npm run prepare:internal-ui && npm prune
[16:02:57.928]
[16:02:58.074]
[16:02:58.074] > [email protected] prepare:npm
[16:02:58.074] > cd npm && npm install --legacy-peer-deps
[16:02:58.074]
[16:03:02.779] npm warn deprecated [email protected]: 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.
[16:03:02.849] npm warn deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
[16:03:02.990] npm warn deprecated [email protected]: This package is no longer supported.
[16:03:03.116] npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
[16:03:03.276] npm warn deprecated [email protected]: This package is no longer supported.
[16:03:03.325] npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
[16:03:03.863] npm warn deprecated [email protected]: This package is no longer supported.
[16:03:16.699] npm error code 1
[16:03:16.700] npm error path /vercel/path0/npm/node_modules/sqlite3
[16:03:16.700] npm error command failed
[16:03:16.700] npm error command sh -c prebuild-install -r napi || node-gyp rebuild
[16:03:16.700] npm error prebuild-install warn This package does not support N-API version undefined
[16:03:16.700] npm error prebuild-install warn install No prebuilt binaries found (target=undefined runtime=napi arch=x64 libc= platform=linux)
[16:03:16.700] npm error gyp info it worked if it ends with ok
[16:03:16.700] npm error gyp info using [email protected]
[16:03:16.700] npm error gyp info using [email protected] | linux | x64
[16:03:16.700] npm error (node:373) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
[16:03:16.700] npm error (Use `node --trace-deprecation ...` to show where the warning was created)
[16:03:16.700] npm error gyp info find Python using Python version 3.12.2 found at "/usr/local/bin/python3"
[16:03:16.700] npm error gyp http GET https://nodejs.org/download/release/v22.14.0/node-v22.14.0-headers.tar.gz
[16:03:16.700] npm error gyp http 200 https://nodejs.org/download/release/v22.14.0/node-v22.14.0-headers.tar.gz
[16:03:16.700] npm error gyp http GET https://nodejs.org/download/release/v22.14.0/SHASUMS256.txt
[16:03:16.702] npm error gyp http 200 https://nodejs.org/download/release/v22.14.0/SHASUMS256.txt
[16:03:16.702] npm error gyp info spawn /usr/local/bin/python3
[16:03:16.702] npm error gyp info spawn args [
[16:03:16.702] npm error gyp info spawn args '/vercel/path0/npm/node_modules/node-gyp/gyp/gyp_main.py',
[16:03:16.702] npm error gyp info spawn args 'binding.gyp',
[16:03:16.702] npm error gyp info spawn args '-f',
[16:03:16.702] npm error gyp info spawn args 'make',
[16:03:16.702] npm error gyp info spawn args '-I',
[16:03:16.702] npm error gyp info spawn args '/vercel/path0/npm/node_modules/sqlite3/build/config.gypi',
[16:03:16.702] npm error gyp info spawn args '-I',
[16:03:16.702] npm error gyp info spawn args '/vercel/path0/npm/node_modules/node-gyp/addon.gypi',
[16:03:16.702] npm error gyp info spawn args '-I',
[16:03:16.702] npm error gyp info spawn args '/vercel/.cache/node-gyp/22.14.0/include/node/common.gypi',
[16:03:16.702] npm error gyp info spawn args '-Dlibrary=shared_library',
[16:03:16.703] npm error gyp info spawn args '-Dvisibility=default',
[16:03:16.703] npm error gyp info spawn args '-Dnode_root_dir=/vercel/.cache/node-gyp/22.14.0',
[16:03:16.703] npm error gyp info spawn args '-Dnode_gyp_dir=/vercel/path0/npm/node_modules/node-gyp',
[16:03:16.703] npm error gyp info spawn args '-Dnode_lib_file=/vercel/.cache/node-gyp/22.14.0/<(target_arch)/node.lib',
[16:03:16.703] npm error gyp info spawn args '-Dmodule_root_dir=/vercel/path0/npm/node_modules/sqlite3',
[16:03:16.703] npm error gyp info spawn args '-Dnode_engine=v8',
[16:03:16.703] npm error gyp info spawn args '--depth=.',
[16:03:16.703] npm error gyp info spawn args '--no-parallel',
[16:03:16.703] npm error gyp info spawn args '--generator-output',
[16:03:16.703] npm error gyp info spawn args 'build',
[16:03:16.703] npm error gyp info spawn args '-Goutput_dir=.'
[16:03:16.703] npm error gyp info spawn args ]
[16:03:16.703] npm error Traceback (most recent call last):
[16:03:16.703] npm error File "/vercel/path0/npm/node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module>
[16:03:16.703] npm error import gyp # noqa: E402
[16:03:16.703] npm error ^^^^^^^^^^
[16:03:16.703] npm error File "/vercel/path0/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in <module>
[16:03:16.703] npm error import gyp.input
[16:03:16.703] npm error File "/vercel/path0/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module>
[16:03:16.703] npm error from distutils.version import StrictVersion
[16:03:16.703] npm error ModuleNotFoundError: No module named 'distutils'
[16:03:16.703] npm error gyp ERR! configure error
[16:03:16.703] npm error gyp ERR! stack Error: `gyp` failed with exit code: 1
[16:03:16.704] npm error gyp ERR! stack at ChildProcess.onCpExit (/vercel/path0/npm/node_modules/node-gyp/lib/configure.js:259:16)
[16:03:16.704] npm error gyp ERR! stack at ChildProcess.emit (node:events:518:28)
[16:03:16.710] npm error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
[16:03:16.710] npm error gyp ERR! System Linux 5.10.174
[16:03:16.710] npm error gyp ERR! command "/node22/bin/node" "/vercel/path0/npm/node_modules/.bin/node-gyp" "rebuild"
[16:03:16.710] npm error gyp ERR! cwd /vercel/path0/npm/node_modules/sqlite3
[16:03:16.710] npm error gyp ERR! node -v v22.14.0
[16:03:16.710] npm error gyp ERR! node-gyp -v v8.4.1
[16:03:16.710] npm error gyp ERR! not ok
[16:03:16.710] npm error A complete log of this run can be found in: /vercel/.npm/_logs/2025-04-10T08_02_58_150Z-debug-0.log
[16:03:16.840] npm error code 1
[16:03:16.840] npm error path /vercel/path0
[16:03:16.841] npm error command failed
[16:03:16.841] npm error command sh -c npm run prepare:npm && npm run prepare:internal-ui && npm prune
[16:03:16.841] npm error A complete log of this run can be found in: /vercel/.npm/_logs/2025-04-10T08_02_15_324Z-debug-0.log
[16:03:16.902] Error: Command "npm install" exited with 1
[16:03:17.503]
Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?
Technical details
- Browser version: You can use https://www.whatsmybrowser.org/ to find this out.
- Node.js version
- Anything else that you think could be an issue.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working