vanblog icon indicating copy to clipboard operation
vanblog copied to clipboard

[问题反馈]: Vercel部署,构建完毕显示404

Open gcdsss opened this issue 1 year ago • 4 comments

问题描述 | Describe the bug

CleanShot 2024-12-09 at 09 27 22@2x vercel部署完后访问404, 访问/admin也显示404 [09:22:57.525] Running build in Washington, D.C., USA (East) – iad1 [09:22:57.670] Cloning github.com/gcdsss/vanblog (Branch: master, Commit: 2acf71c) [09:22:58.153] Previous build cache not available [09:22:58.406] Cloning completed: 735.587ms [09:22:59.118] Running "vercel build" [09:22:59.992] Vercel CLI 39.1.3 [09:23:00.821] Detected pnpm-lock.yaml version 6 generated by [email protected] [09:23:00.869] Installing dependencies... [09:23:01.641] Scope: all 7 workspace projects [09:23:02.151] .. | Progress: resolved 1, reused 0, downloaded 0, added 0 [09:23:02.652] .. | +3827 ++++++++++++++++++++++++++++ [09:23:03.151] .. | Progress: resolved 3827, reused 0, downloaded 0, added 0 [09:23:04.152] .. | Progress: resolved 3827, reused 0, downloaded 29, added 19 [09:23:05.152] .. | Progress: resolved 3827, reused 0, downloaded 102, added 99 [09:23:06.153] .. | Progress: resolved 3827, reused 0, downloaded 179, added 173 [09:23:07.155] .. | Progress: resolved 3827, reused 0, downloaded 259, added 254 [09:23:08.156] .. | Progress: resolved 3827, reused 0, downloaded 310, added 300 [09:23:09.157] .. | Progress: resolved 3827, reused 0, downloaded 484, added 523 [09:23:10.159] .. | Progress: resolved 3827, reused 0, downloaded 567, added 610 [09:23:11.160] .. | Progress: resolved 3827, reused 0, downloaded 622, added 660 [09:23:12.168] .. | Progress: resolved 3827, reused 0, downloaded 694, added 747 [09:23:13.170] .. | Progress: resolved 3827, reused 0, downloaded 798, added 853 [09:23:14.171] .. | Progress: resolved 3827, reused 0, downloaded 957, added 1019 [09:23:15.172] .. | Progress: resolved 3827, reused 0, downloaded 972, added 1026 [09:23:16.174] .. | Progress: resolved 3827, reused 0, downloaded 976, added 1029 [09:23:17.174] .. | Progress: resolved 3827, reused 0, downloaded 993, added 1046 [09:23:18.176] .. | Progress: resolved 3827, reused 0, downloaded 1040, added 1096 [09:23:19.177] .. | Progress: resolved 3827, reused 0, downloaded 1065, added 1119 [09:23:20.179] .. | Progress: resolved 3827, reused 0, downloaded 1081, added 1134 [09:23:21.180] .. | Progress: resolved 3827, reused 0, downloaded 1122, added 1176 [09:23:22.183] .. | Progress: resolved 3827, reused 0, downloaded 1232, added 1292 [09:23:23.184] .. | Progress: resolved 3827, reused 0, downloaded 1290, added 1348 [09:23:24.186] .. | Progress: resolved 3827, reused 0, downloaded 1314, added 1368 [09:23:25.185] .. | Progress: resolved 3827, reused 0, downloaded 1346, added 1406 [09:23:26.190] .. | Progress: resolved 3827, reused 0, downloaded 1434, added 1501 [09:23:27.191] .. | Progress: resolved 3827, reused 0, downloaded 1476, added 1541 [09:23:28.192] .. | Progress: resolved 3827, reused 0, downloaded 1639, added 1709 [09:23:29.193] .. | Progress: resolved 3827, reused 0, downloaded 1731, added 1803 [09:23:30.194] .. | Progress: resolved 3827, reused 0, downloaded 1805, added 1873 [09:23:31.195] .. | Progress: resolved 3827, reused 0, downloaded 1932, added 2010 [09:23:32.198] .. | Progress: resolved 3827, reused 0, downloaded 2024, added 2101 [09:23:33.198] .. | Progress: resolved 3827, reused 0, downloaded 2130, added 2199 [09:23:34.200] .. | Progress: resolved 3827, reused 0, downloaded 2218, added 2289 [09:23:35.199] .. | Progress: resolved 3827, reused 0, downloaded 2270, added 2339 [09:23:36.199] .. | Progress: resolved 3827, reused 0, downloaded 2332, added 2401 [09:23:37.200] .. | Progress: resolved 3827, reused 0, downloaded 2357, added 2433 [09:23:38.201] .. | Progress: resolved 3827, reused 0, downloaded 2373, added 2441 [09:23:39.204] .. | Progress: resolved 3827, reused 0, downloaded 2494, added 2567 [09:23:40.202] .. | Progress: resolved 3827, reused 0, downloaded 2590, added 2666 [09:23:41.203] .. | Progress: resolved 3827, reused 0, downloaded 2609, added 2685 [09:23:42.203] .. | Progress: resolved 3827, reused 0, downloaded 2651, added 2731 [09:23:43.204] .. | Progress: resolved 3827, reused 0, downloaded 2668, added 2741 [09:23:44.204] .. | Progress: resolved 3827, reused 0, downloaded 2800, added 2875 [09:23:45.204] .. | Progress: resolved 3827, reused 0, downloaded 2886, added 2968 [09:23:46.206] .. | Progress: resolved 3827, reused 0, downloaded 3018, added 3097 [09:23:47.208] .. | Progress: resolved 3827, reused 0, downloaded 3110, added 3188 [09:23:48.209] .. | Progress: resolved 3827, reused 0, downloaded 3177, added 3255 [09:23:49.210] .. | Progress: resolved 3827, reused 0, downloaded 3300, added 3380 [09:23:50.247] .. | Progress: resolved 3827, reused 0, downloaded 3387, added 3464 [09:23:51.247] .. | Progress: resolved 3827, reused 0, downloaded 3388, added 3465 [09:23:52.248] .. | Progress: resolved 3827, reused 0, downloaded 3402, added 3477 [09:23:53.249] .. | Progress: resolved 3827, reused 0, downloaded 3403, added 3477 [09:23:54.250] .. | Progress: resolved 3827, reused 0, downloaded 3404, added 3477 [09:23:55.250] .. | Progress: resolved 3827, reused 0, downloaded 3428, added 3501 [09:23:56.251] .. | Progress: resolved 3827, reused 0, downloaded 3454, added 3532 [09:23:57.252] .. | Progress: resolved 3827, reused 0, downloaded 3561, added 3638 [09:23:58.254] .. | Progress: resolved 3827, reused 0, downloaded 3583, added 3660 [09:23:59.255] .. | Progress: resolved 3827, reused 0, downloaded 3614, added 3692 [09:24:00.256] .. | Progress: resolved 3827, reused 0, downloaded 3667, added 3743 [09:24:01.257] .. | Progress: resolved 3827, reused 0, downloaded 3689, added 3764 [09:24:02.061] .. | Progress: resolved 3827, reused 0, downloaded 3735, added 3827, done [09:24:03.489] .../[email protected]/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}" [09:24:03.513] .../node_modules/vue-demi postinstall$ node ./scripts/postinstall.js [09:24:03.562] .../[email protected]/node_modules/es5-ext postinstall$ node -e "try{require('./_postinstall')}catch(e){}" || exit 0 [09:24:03.562] .../.pnpm/[email protected]/node_modules/ejs postinstall$ node ./postinstall.js [09:24:03.578] .../node_modules/puppeteer-core install$ node install.js [09:24:03.613] .../[email protected]/node_modules/core-js postinstall: Done [09:24:03.650] .../.pnpm/[email protected]/node_modules/ejs postinstall: Done [09:24:04.116] .../node_modules/puppeteer-core install: Done [09:24:04.166] .../[email protected]/node_modules/es5-ext postinstall: Done [09:24:04.202] .../node_modules/vue-demi postinstall: Done [09:24:04.341] .../[email protected]/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}" [09:24:04.361] .../[email protected]/node_modules/esbuild postinstall$ node install.js [09:24:04.390] .../node_modules/core-js-pure postinstall$ node -e "try{require('./postinstall')}catch(e){}" [09:24:04.407] .../[email protected]/node_modules/core-js postinstall: Done [09:24:04.452] .../node_modules/core-js-pure postinstall: Done [09:24:04.482] .../[email protected]/node_modules/esbuild postinstall$ node install.js [09:24:04.504] .../[email protected]/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}" [09:24:04.639] .../[email protected]/node_modules/core-js postinstall: Done [09:24:05.775] .../node_modules/tree-sitter install$ prebuild-install || node-gyp rebuild [09:24:07.523] .../node_modules/tree-sitter install: prebuild-install warn install No prebuilt binaries found (target=22.12.0 runtime=node arch=x64 libc= platform=linux) [09:24:07.767] .../node_modules/tree-sitter install: gyp info it worked if it ends with ok [09:24:07.767] .../node_modules/tree-sitter install: gyp info using [email protected] [09:24:07.767] .../node_modules/tree-sitter install: gyp info using [email protected] | linux | x64 [09:24:08.233] .../node_modules/tree-sitter install: (node:504) [DEP0060] DeprecationWarning: The util._extend API is deprecated. Please use Object.assign() instead. [09:24:08.234] .../node_modules/tree-sitter install: (Use node --trace-deprecation ... to show where the warning was created) [09:24:08.334] .../node_modules/tree-sitter install: gyp info find Python using Python version 3.12.2 found at "/usr/local/bin/python3" [09:24:08.378] .../node_modules/tree-sitter-json install$ node-gyp rebuild [09:24:08.715] .../node_modules/tree-sitter-json install: gyp info it worked if it ends with ok [09:24:08.718] .../node_modules/tree-sitter-json install: gyp info using [email protected] [09:24:08.720] .../node_modules/tree-sitter-json install: gyp info using [email protected] | linux | x64 [09:24:08.892] .../node_modules/tree-sitter-json install: (node:518) [DEP0060] DeprecationWarning: The util._extend API is deprecated. Please use Object.assign() instead. [09:24:08.893] .../node_modules/tree-sitter-json install: (Use node --trace-deprecation ... to show where the warning was created) [09:24:08.966] .../node_modules/tree-sitter-json install: gyp info find Python using Python version 3.12.2 found at "/usr/local/bin/python3" [09:24:09.007] .../node_modules/tree-sitter install: gyp http GET https://nodejs.org/download/release/v22.12.0/node-v22.12.0-headers.tar.gz [09:24:09.039] .../node_modules/tree-sitter-yaml install$ node-gyp rebuild [09:24:09.259] .../node_modules/tree-sitter install: gyp http 200 https://nodejs.org/download/release/v22.12.0/node-v22.12.0-headers.tar.gz [09:24:09.383] .../node_modules/tree-sitter-yaml install: gyp info it worked if it ends with ok [09:24:09.385] .../node_modules/tree-sitter-yaml install: gyp info using [email protected] [09:24:09.387] .../node_modules/tree-sitter-yaml install: gyp info using [email protected] | linux | x64 [09:24:09.515] .../node_modules/tree-sitter-json install: gyp http GET https://nodejs.org/download/release/v22.12.0/node-v22.12.0-headers.tar.gz [09:24:09.570] .../node_modules/tree-sitter-yaml install: (node:532) [DEP0060] DeprecationWarning: The util._extend API is deprecated. Please use Object.assign() instead. [09:24:09.571] .../node_modules/tree-sitter-yaml install: (Use node --trace-deprecation ... to show where the warning was created) [09:24:09.613] .../[email protected]/node_modules/esbuild postinstall: Done [09:24:09.616] .../[email protected]/node_modules/esbuild postinstall: Done [09:24:09.656] .../node_modules/tree-sitter-yaml install: gyp info find Python using Python version 3.12.2 found at "/usr/local/bin/python3" [09:24:09.672] .../[email protected]/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}" [09:24:09.786] .../node_modules/tree-sitter-json install: gyp http 200 https://nodejs.org/download/release/v22.12.0/node-v22.12.0-headers.tar.gz [09:24:09.791] .../node_modules/@nestjs/core postinstall$ opencollective || exit 0 [09:24:09.840] .../[email protected]/node_modules/core-js postinstall: Done [09:24:10.081] .../node_modules/tree-sitter-yaml install: gyp http GET https://nodejs.org/download/release/v22.12.0/node-v22.12.0-headers.tar.gz [09:24:10.205] .../node_modules/tree-sitter-yaml install: gyp http 200 https://nodejs.org/download/release/v22.12.0/node-v22.12.0-headers.tar.gz [09:24:10.293] .../node_modules/@nestjs/core postinstall: (node:563) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. [09:24:10.294] .../node_modules/@nestjs/core postinstall: (Use node --trace-deprecation ... to show where the warning was created) [09:24:10.310] .../node_modules/@nestjs/core postinstall: Done [09:24:11.747] .../[email protected]/node_modules/sharp install$ (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy) [09:24:12.597] .../[email protected]/node_modules/sharp install: sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.13.3/libvips-8.13.3-linux-x64.tar.br [09:24:14.130] .../[email protected]/node_modules/sharp install: sharp: Integrity check passed for linux-x64 [09:24:14.360] .../node_modules/tree-sitter install: gyp http GET https://nodejs.org/download/release/v22.12.0/SHASUMS256.txt [09:24:14.412] .../node_modules/tree-sitter install: gyp http 200 https://nodejs.org/download/release/v22.12.0/SHASUMS256.txt [09:24:14.453] .../node_modules/tree-sitter install: gyp info spawn /usr/local/bin/python3 [09:24:14.454] .../node_modules/tree-sitter install: gyp info spawn args [ [09:24:14.454] .../node_modules/tree-sitter install: gyp info spawn args '/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py', [09:24:14.454] .../node_modules/tree-sitter install: gyp info spawn args 'binding.gyp', [09:24:14.454] .../node_modules/tree-sitter install: gyp info spawn args '-f', [09:24:14.455] .../node_modules/tree-sitter install: gyp info spawn args 'make', [09:24:14.455] .../node_modules/tree-sitter install: gyp info spawn args '-I', [09:24:14.455] .../node_modules/tree-sitter install: gyp info spawn args '/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/tree-sitter/build/config.gypi', [09:24:14.455] .../node_modules/tree-sitter install: gyp info spawn args '-I', [09:24:14.455] .../node_modules/tree-sitter install: gyp info spawn args '/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/addon.gypi', [09:24:14.457] .../node_modules/tree-sitter install: gyp info spawn args '-I', [09:24:14.458] .../node_modules/tree-sitter install: gyp info spawn args '/vercel/.cache/node-gyp/22.12.0/include/node/common.gypi', [09:24:14.458] .../node_modules/tree-sitter install: gyp info spawn args '-Dlibrary=shared_library', [09:24:14.460] .../node_modules/tree-sitter install: gyp info spawn args '-Dvisibility=default', [09:24:14.461] .../node_modules/tree-sitter install: gyp info spawn args '-Dnode_root_dir=/vercel/.cache/node-gyp/22.12.0', [09:24:14.461] .../node_modules/tree-sitter install: gyp info spawn args '-Dnode_gyp_dir=/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp', [09:24:14.462] .../node_modules/tree-sitter install: gyp info spawn args '-Dnode_lib_file=/vercel/.cache/node-gyp/22.12.0/<(target_arch)/node.lib', [09:24:14.462] .../node_modules/tree-sitter install: gyp info spawn args '-Dmodule_root_dir=/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/tree-sitter', [09:24:14.462] .../node_modules/tree-sitter install: gyp info spawn args '-Dnode_engine=v8', [09:24:14.462] .../node_modules/tree-sitter install: gyp info spawn args '--depth=.', [09:24:14.463] .../node_modules/tree-sitter install: gyp info spawn args '--no-parallel', [09:24:14.463] .../node_modules/tree-sitter install: gyp info spawn args '--generator-output', [09:24:14.463] .../node_modules/tree-sitter install: gyp info spawn args 'build', [09:24:14.463] .../node_modules/tree-sitter install: gyp info spawn args '-Goutput_dir=.' [09:24:14.463] .../node_modules/tree-sitter install: gyp info spawn args ] [09:24:14.838] .../[email protected]/node_modules/sharp install: Done [09:24:14.997] .../node_modules/tree-sitter install: Traceback (most recent call last): [09:24:14.999] .../node_modules/tree-sitter install: File "/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py", line 42, in [09:24:15.003] .../node_modules/tree-sitter install: import gyp # noqa: E402 [09:24:15.004] .../node_modules/tree-sitter install: ^^^^^^^^^^ [09:24:15.006] .../node_modules/tree-sitter install: File "/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 9, in [09:24:15.007] .../node_modules/tree-sitter install: import gyp.input [09:24:15.013] .../node_modules/tree-sitter install: File "/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in [09:24:15.017] .../node_modules/tree-sitter install: from distutils.version import StrictVersion [09:24:15.017] .../node_modules/tree-sitter install: ModuleNotFoundError: No module named 'distutils' [09:24:15.039] .../node_modules/tree-sitter install: gyp ERR! configure error [09:24:15.040] .../node_modules/tree-sitter install: gyp ERR! stack Error: gyp failed with exit code: 1 [09:24:15.040] .../node_modules/tree-sitter install: gyp ERR! stack at ChildProcess.onCpExit (/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/lib/configure.js:325:16) [09:24:15.041] .../node_modules/tree-sitter install: gyp ERR! stack at ChildProcess.emit (node:events:524:28) [09:24:15.041] .../node_modules/tree-sitter install: gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12) [09:24:15.041] .../node_modules/tree-sitter install: gyp ERR! System Linux 5.10.174 [09:24:15.041] .../node_modules/tree-sitter install: gyp ERR! command "/node22/bin/node" "/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js" "rebuild" [09:24:15.041] .../node_modules/tree-sitter install: gyp ERR! cwd /vercel/path0/node_modules/.pnpm/[email protected]/node_modules/tree-sitter [09:24:15.041] .../node_modules/tree-sitter install: gyp ERR! node -v v22.12.0 [09:24:15.042] .../node_modules/tree-sitter install: gyp ERR! node-gyp -v v9.4.1 [09:24:15.042] .../node_modules/tree-sitter install: gyp ERR! not ok [09:24:15.050] .../node_modules/tree-sitter install: Failed [09:24:15.430] .../node_modules/tree-sitter-yaml install: gyp http GET https://nodejs.org/download/release/v22.12.0/SHASUMS256.txt [09:24:15.432] .../node_modules/tree-sitter-json install: gyp http GET https://nodejs.org/download/release/v22.12.0/SHASUMS256.txt [09:24:15.455] .../node_modules/tree-sitter-yaml install: gyp http 200 https://nodejs.org/download/release/v22.12.0/SHASUMS256.txt [09:24:15.462] .../node_modules/tree-sitter-json install: gyp http 200 https://nodejs.org/download/release/v22.12.0/SHASUMS256.txt [09:24:15.465] .../node_modules/tree-sitter-yaml install: gyp info spawn /usr/local/bin/python3 [09:24:15.465] .../node_modules/tree-sitter-yaml install: gyp info spawn args [ [09:24:15.465] .../node_modules/tree-sitter-yaml install: gyp info spawn args '/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py', [09:24:15.465] .../node_modules/tree-sitter-yaml install: gyp info spawn args 'binding.gyp', [09:24:15.466] .../node_modules/tree-sitter-yaml install: gyp info spawn args '-f', [09:24:15.466] .../node_modules/tree-sitter-yaml install: gyp info spawn args 'make', [09:24:15.466] .../node_modules/tree-sitter-yaml install: gyp info spawn args '-I', [09:24:15.466] .../node_modules/tree-sitter-yaml install: gyp info spawn args '/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/tree-sitter-yaml/build/config.gypi', [09:24:15.466] .../node_modules/tree-sitter-yaml install: gyp info spawn args '-I', [09:24:15.466] .../node_modules/tree-sitter-yaml install: gyp info spawn args '/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/addon.gypi', [09:24:15.466] .../node_modules/tree-sitter-yaml install: gyp info spawn args '-I', [09:24:15.466] .../node_modules/tree-sitter-yaml install: gyp info spawn args '/vercel/.cache/node-gyp/22.12.0/include/node/common.gypi', [09:24:15.466] .../node_modules/tree-sitter-yaml install: gyp info spawn args '-Dlibrary=shared_library', [09:24:15.466] .../node_modules/tree-sitter-yaml install: gyp info spawn args '-Dvisibility=default', [09:24:15.466] .../node_modules/tree-sitter-yaml install: gyp info spawn args '-Dnode_root_dir=/vercel/.cache/node-gyp/22.12.0', [09:24:15.466] .../node_modules/tree-sitter-yaml install: gyp info spawn args '-Dnode_gyp_dir=/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp', [09:24:15.466] .../node_modules/tree-sitter-yaml install: gyp info spawn args '-Dnode_lib_file=/vercel/.cache/node-gyp/22.12.0/<(target_arch)/node.lib', [09:24:15.467] .../node_modules/tree-sitter-yaml install: gyp info spawn args '-Dmodule_root_dir=/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/tree-sitter-yaml', [09:24:15.467] .../node_modules/tree-sitter-yaml install: gyp info spawn args '-Dnode_engine=v8', [09:24:15.467] .../node_modules/tree-sitter-yaml install: gyp info spawn args '--depth=.', [09:24:15.467] .../node_modules/tree-sitter-yaml install: gyp info spawn args '--no-parallel', [09:24:15.467] .../node_modules/tree-sitter-yaml install: gyp info spawn args '--generator-output', [09:24:15.467] .../node_modules/tree-sitter-yaml install: gyp info spawn args 'build', [09:24:15.467] .../node_modules/tree-sitter-yaml install: gyp info spawn args '-Goutput_dir=.' [09:24:15.467] .../node_modules/tree-sitter-yaml install: gyp info spawn args ] [09:24:15.483] .../node_modules/tree-sitter-json install: gyp info spawn /usr/local/bin/python3 [09:24:15.484] .../node_modules/tree-sitter-json install: gyp info spawn args [ [09:24:15.484] .../node_modules/tree-sitter-json install: gyp info spawn args '/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py', [09:24:15.484] .../node_modules/tree-sitter-json install: gyp info spawn args 'binding.gyp', [09:24:15.484] .../node_modules/tree-sitter-json install: gyp info spawn args '-f', [09:24:15.484] .../node_modules/tree-sitter-json install: gyp info spawn args 'make', [09:24:15.484] .../node_modules/tree-sitter-json install: gyp info spawn args '-I', [09:24:15.485] .../node_modules/tree-sitter-json install: gyp info spawn args '/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/tree-sitter-json/build/config.gypi', [09:24:15.486] .../node_modules/tree-sitter-json install: gyp info spawn args '-I', [09:24:15.486] .../node_modules/tree-sitter-json install: gyp info spawn args '/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/addon.gypi', [09:24:15.486] .../node_modules/tree-sitter-json install: gyp info spawn args '-I', [09:24:15.486] .../node_modules/tree-sitter-json install: gyp info spawn args '/vercel/.cache/node-gyp/22.12.0/include/node/common.gypi', [09:24:15.486] .../node_modules/tree-sitter-json install: gyp info spawn args '-Dlibrary=shared_library', [09:24:15.486] .../node_modules/tree-sitter-json install: gyp info spawn args '-Dvisibility=default', [09:24:15.486] .../node_modules/tree-sitter-json install: gyp info spawn args '-Dnode_root_dir=/vercel/.cache/node-gyp/22.12.0', [09:24:15.486] .../node_modules/tree-sitter-json install: gyp info spawn args '-Dnode_gyp_dir=/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp', [09:24:15.486] .../node_modules/tree-sitter-json install: gyp info spawn args '-Dnode_lib_file=/vercel/.cache/node-gyp/22.12.0/<(target_arch)/node.lib', [09:24:15.486] .../node_modules/tree-sitter-json install: gyp info spawn args '-Dmodule_root_dir=/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/tree-sitter-json', [09:24:15.486] .../node_modules/tree-sitter-json install: gyp info spawn args '-Dnode_engine=v8', [09:24:15.487] .../node_modules/tree-sitter-json install: gyp info spawn args '--depth=.', [09:24:15.487] .../node_modules/tree-sitter-json install: gyp info spawn args '--no-parallel', [09:24:15.487] .../node_modules/tree-sitter-json install: gyp info spawn args '--generator-output', [09:24:15.487] .../node_modules/tree-sitter-json install: gyp info spawn args 'build', [09:24:15.487] .../node_modules/tree-sitter-json install: gyp info spawn args '-Goutput_dir=.' [09:24:15.487] .../node_modules/tree-sitter-json install: gyp info spawn args ] [09:24:15.533] .../node_modules/tree-sitter-yaml install: Traceback (most recent call last): [09:24:15.534] .../node_modules/tree-sitter-yaml install: File "/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py", line 42, in [09:24:15.535] .../node_modules/tree-sitter-yaml install: import gyp # noqa: E402 [09:24:15.535] .../node_modules/tree-sitter-yaml install: ^^^^^^^^^^ [09:24:15.535] .../node_modules/tree-sitter-yaml install: File "/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 9, in [09:24:15.535] .../node_modules/tree-sitter-yaml install: import gyp.input [09:24:15.535] .../node_modules/tree-sitter-yaml install: File "/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in [09:24:15.535] .../node_modules/tree-sitter-yaml install: from distutils.version import StrictVersion [09:24:15.536] .../node_modules/tree-sitter-yaml install: ModuleNotFoundError: No module named 'distutils' [09:24:15.547] .../node_modules/tree-sitter-yaml install: gyp ERR! configure error [09:24:15.547] .../node_modules/tree-sitter-yaml install: gyp ERR! stack Error: gyp failed with exit code: 1 [09:24:15.547] .../node_modules/tree-sitter-yaml install: gyp ERR! stack at ChildProcess.onCpExit (/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/lib/configure.js:325:16) [09:24:15.547] .../node_modules/tree-sitter-yaml install: gyp ERR! stack at ChildProcess.emit (node:events:524:28) [09:24:15.548] .../node_modules/tree-sitter-yaml install: gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12) [09:24:15.548] .../node_modules/tree-sitter-yaml install: gyp ERR! System Linux 5.10.174 [09:24:15.548] .../node_modules/tree-sitter-yaml install: gyp ERR! command "/node22/bin/node" "/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js" "rebuild" [09:24:15.548] .../node_modules/tree-sitter-yaml install: gyp ERR! cwd /vercel/path0/node_modules/.pnpm/[email protected]/node_modules/tree-sitter-yaml [09:24:15.548] .../node_modules/tree-sitter-yaml install: gyp ERR! node -v v22.12.0 [09:24:15.548] .../node_modules/tree-sitter-yaml install: gyp ERR! node-gyp -v v9.4.1 [09:24:15.548] .../node_modules/tree-sitter-yaml install: gyp ERR! not ok [09:24:15.558] .../node_modules/tree-sitter-yaml install: Failed [09:24:15.565] .../node_modules/tree-sitter-json install: Traceback (most recent call last): [09:24:15.565] .../node_modules/tree-sitter-json install: File "/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py", line 42, in [09:24:15.565] .../node_modules/tree-sitter-json install: import gyp # noqa: E402 [09:24:15.565] .../node_modules/tree-sitter-json install: ^^^^^^^^^^ [09:24:15.565] .../node_modules/tree-sitter-json install: File "/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 9, in [09:24:15.565] .../node_modules/tree-sitter-json install: import gyp.input [09:24:15.565] .../node_modules/tree-sitter-json install: File "/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in [09:24:15.565] .../node_modules/tree-sitter-json install: from distutils.version import StrictVersion [09:24:15.565] .../node_modules/tree-sitter-json install: ModuleNotFoundError: No module named 'distutils' [09:24:15.576] .../node_modules/tree-sitter-json install: gyp ERR! configure error [09:24:15.576] .../node_modules/tree-sitter-json install: gyp ERR! stack Error: gyp failed with exit code: 1 [09:24:15.576] .../node_modules/tree-sitter-json install: gyp ERR! stack at ChildProcess.onCpExit (/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/lib/configure.js:325:16) [09:24:15.576] .../node_modules/tree-sitter-json install: gyp ERR! stack at ChildProcess.emit (node:events:524:28) [09:24:15.578] .../node_modules/tree-sitter-json install: gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12) [09:24:15.578] .../node_modules/tree-sitter-json install: gyp ERR! System Linux 5.10.174 [09:24:15.578] .../node_modules/tree-sitter-json install: gyp ERR! command "/node22/bin/node" "/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js" "rebuild" [09:24:15.578] .../node_modules/tree-sitter-json install: gyp ERR! cwd /vercel/path0/node_modules/.pnpm/[email protected]/node_modules/tree-sitter-json [09:24:15.578] .../node_modules/tree-sitter-json install: gyp ERR! node -v v22.12.0 [09:24:15.578] .../node_modules/tree-sitter-json install: gyp ERR! node-gyp -v v9.4.1 [09:24:15.579] .../node_modules/tree-sitter-json install: gyp ERR! not ok [09:24:15.588] .../node_modules/tree-sitter-json install: Failed [09:24:15.599] .../[email protected]/node_modules/esbuild postinstall$ node install.js [09:24:15.619] .../node_modules/@swc/core postinstall$ node postinstall.js [09:24:15.634] .../[email protected]/node_modules/esbuild postinstall$ node install.js [09:24:15.747] .../[email protected]/node_modules/esbuild postinstall: Done [09:24:15.762] .../[email protected]/node_modules/esbuild postinstall: Done [09:24:15.773] .../node_modules/@swc/core postinstall: Done [09:24:15.865] .../[email protected]/node_modules/sqlite3 install$ node-pre-gyp install --fallback-to-build [09:24:15.950] .../[email protected]/node_modules/sqlite3 install: node-pre-gyp info it worked if it ends with ok [09:24:15.951] .../[email protected]/node_modules/sqlite3 install: node-pre-gyp info using [email protected] [09:24:15.951] .../[email protected]/node_modules/sqlite3 install: node-pre-gyp info using [email protected] | linux | x64 [09:24:16.035] .../[email protected]/node_modules/sqlite3 install: (node:668) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. [09:24:16.035] .../[email protected]/node_modules/sqlite3 install: (Use node --trace-deprecation ... to show where the warning was created) [09:24:16.035] .../[email protected]/node_modules/sqlite3 install: node-pre-gyp info check checked for "/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/sqlite3/lib/binding/napi-v6-linux-glibc-x64/node_sqlite3.node" (not found) [09:24:16.037] .../[email protected]/node_modules/sqlite3 install: node-pre-gyp http GET https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.6/napi-v6-linux-glibc-x64.tar.gz [09:24:16.190] .../[email protected]/node_modules/sqlite3 install: node-pre-gyp info install unpacking napi-v6-linux-glibc-x64/node_sqlite3.node [09:24:16.228] .../[email protected]/node_modules/sqlite3 install: node-pre-gyp info extracted file count: 1 [09:24:16.228] .../[email protected]/node_modules/sqlite3 install: [sqlite3] Success: "/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/sqlite3/lib/binding/napi-v6-linux-glibc-x64/node_sqlite3.node" is installed via remote [09:24:16.228] .../[email protected]/node_modules/sqlite3 install: node-pre-gyp info ok [09:24:16.240] .../[email protected]/node_modules/sqlite3 install: Done [09:24:16.645] [09:24:16.646] devDependencies: [09:24:16.646] + @vuepress/client 2.0.0-rc.0 [09:24:16.646] + @vuepress/utils 2.0.0-rc.0 [09:24:16.647] + vue 3.3.9 [09:24:16.647] + vuepress 2.0.0-rc.0 [09:24:16.647] + vuepress-plugin-redirect 2.0.0-rc.1 [09:24:16.647] + vuepress-plugin-search-pro 2.0.0-rc.1 [09:24:16.647] + vuepress-theme-hope 2.0.0-rc.1 [09:24:16.648] [09:24:16.715] ../packages/admin postinstall$ umi g tmp [09:24:17.298] ../packages/admin postinstall: Browserslist: caniuse-lite is outdated. Please run: [09:24:17.298] ../packages/admin postinstall: npx update-browserslist-db@latest [09:24:17.298] ../packages/admin postinstall: Why you should do it regularly: https://github.com/browserslist/update-db#readme [09:24:19.735] ../packages/admin postinstall: Done [09:24:19.736] ../packages/admin prepare$ echo 'pre' [09:24:19.745] ../packages/admin prepare: pre [09:24:19.746] ../packages/admin prepare: Done [09:24:19.749] Done in 1m 18.7s [09:24:20.667] (node:707) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. [09:24:20.667] (Use node --trace-deprecation ... to show where the warning was created) [09:24:20.708] - Initializing and preparing data [09:24:20.743] ✔ Initializing and preparing data - done in 49ms [09:24:20.744] - Compiling with vite [09:24:22.575] Browserslist: caniuse-lite is outdated. Please run: [09:24:22.578] npx update-browserslist-db@latest [09:24:22.578] Why you should do it regularly: https://github.com/browserslist/update-db#readme [09:24:24.682] ✔ Compiling with vite - done in 3.94s [09:24:24.683] - Rendering 1 pages [09:24:24.720] ✔ Rendering 1 pages - done in 37ms [09:24:24.722] [32msuccess[39m VuePress build completed in 4.06s! [09:24:24.768] Build Completed in /vercel/output [1m] [09:24:24.804] Deploying outputs... [09:24:27.163] [09:24:27.472] Deployment completed [09:25:54.878] Uploading build cache [305.42 MB]... [09:25:57.741] Build cache uploaded: 2.863s

复现网址 | Website URL

https://vanblog-docs.vercel.app/

版本 | Version

master

部署方式? | How do you deploy vanblog?

其他方式

gcdsss avatar Dec 09 '24 01:12 gcdsss

@gcdsss vercel没有mongodb吧?不能部署vanblog

JIeJaitt avatar Dec 20 '24 02:12 JIeJaitt

倒是挺正常的。看看你 vercel 配置?

CornWorld avatar Mar 11 '25 14:03 CornWorld

@CornWorld vercel没有mongodb,怎么构建vanblog

JIeJaitt avatar Mar 11 '25 14:03 JIeJaitt

@CornWorld vercel没有mongodb,怎么构建vanblog

ta 看起来在搭建 vanblog 的 docs,而不是需要 mongo 的那几个包

CornWorld avatar Mar 12 '25 06:03 CornWorld