我使用 vercel 部署 hexo,主题是 anzhiyu
文章页点击目录不能跳转,控制台有如下报错
本地运行时一切正常,推送到 vercel 就有这个问题
vercel nodejs 版本是 18.x,尝试切换到 20.x 或者 22.x 部署就会一直卡在这
我使用 vercel 部署 hexo,主题是 anzhiyu
文章页点击目录不能跳转,控制台有如下报错
本地运行时一切正常,推送到 vercel 就有这个问题
vercel nodejs 版本是 18.x,尝试切换到 20.x 或者 22.x 部署就会一直卡在这
怎么是 yarn 来安装的你项目依赖包 ![]()
改成 npm 也是一样
,放弃了,已经换成 cf page 了
能给我看一下使用npm的Build Logs吗?
CtrlF
Running build in Washington, D.C., USA (East) – iad1
Build machine configuration: 2 cores, 8 GB
Cloning github.com/sun-i/blog (Branch: main, Commit: b212760)
Cloning completed: 742.000ms
Found .vercelignore
Removed 3 ignored files defined in .vercelignore
/README.md
/themes/anzhiyu/README.md
/themes/landscape/README.md
Skipping build cache since Node.js version changed from "18.x" to "22.x"
Running "vercel build"
Vercel CLI 44.5.0
Warning: Due to "engines": { "node": "22.x" } in your `package.json` file, the Node.js Version defined in your Project Settings ("18.x") will not apply, Node.js Version "22.x" will be used instead. Learn More: http://vercel.link/node-version
Running "install" command: `npm install`...
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.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Cuid and other k-sortable and non-cryptographic ids (Ulid, ObjectId, KSUID, all UUIDs) are all insecure. Use @paralleldrive/cuid2 instead.
added 303 packages, and audited 304 packages in 8s
38 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
Failed to set locale, defaulting to C.UTF-8
Amazon Linux 2023 repository 45 MB/s | 20 MB 00:00
Last metadata expiration check: 0:00:04 ago on Sun Jul 27 07:40:31 2025.
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
wget x86_64 1.21.3-1.amzn2023.0.3 amazonlinux 780 k
Installing dependencies:
libmetalink x86_64 0.1.3-14.amzn2023.0.2 amazonlinux 31 k
Transaction Summary
================================================================================
Install 2 Packages
Total download size: 811 k
Installed size: 3.3 M
我知道这个,设置 18.x 的时候部署没问题,但是目录有问题,设置 20.x 22.x 直接部署卡住了 ![]()
我本地是 20.x
能发我一份你的源代码不,我来复现下(看不到源代码我有点不好调)
感谢佬友,不过不用麻烦了,我已经切换到 cf page 了 ![]()
好吧好吧,但是估计是 Node.js 版本导致的 markdown 渲染有问题,如果你后面要换成 vercel 的话,就沿着这个去排应该是没问题的
好的好的,谢谢佬友