Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: vercel:The engine "node" is incompatible with this module. Expected version ">=18". Got "16.20.2" #2312

Closed
JiangJiYue opened this issue Feb 6, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@JiangJiYue
Copy link

问题描述 | Describe the bug

error @waline/[email protected]: The engine "node" is incompatible with this module. Expected version ">=18". Got "16.20.2"
07:49:33.831 | error Found incompatible module.
07:49:33.832 | info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
07:49:33.860 | Error: Command "yarn install" exited with 1
07:49:37.335


问题网站 | Website URL

https://vercel.com/new/clone/hidden?repository-url=https%3A%2F%2Fgithub.com%2Fwalinejs%2Fwaline%2Ftree%2Fmain%2Fexample&deploymentIds=dpl_HDgHy6kxTMFMjXj1rBL5RN4BcL2X

服务部署在哪里? | Where your waline deploy?

Vercel (Default)

数据存储在哪里?| Where your comment data store?

LeanCloud(https://leancloud.app)

@JiangJiYue JiangJiYue added the bug Something isn't working label Feb 6, 2024
@lizheming
Copy link
Collaborator

lizheming commented Feb 7, 2024

先回退 @waline/vercel 到 1.31.7 的版本,可以正常工作


First roll back @waline/vercel to version 1.31.7 and it will work normally

@ilovefreesw
Copy link

ilovefreesw commented Feb 9, 2024

After changing the Node version to 20.x in the Vercel project settings, the error changes to:

[11:31:36.915] > Installing Builder: @vercel/[email protected]
[11:31:42.105] Installing dependencies...
[11:31:42.120] Yarn requires Node.js 4.0 or higher to be installed.
[11:31:42.124] Error: Command "yarn install" exited with 1

@yzl3014
Copy link

yzl3014 commented Feb 11, 2024

Someone has encountered the same problem, but there hasn't been a reply yet:
https://github.com/orgs/vercel/discussions/5755

@willow-god
Copy link

willow-god commented Feb 11, 2024

我尝试将vercel.json内的node版本修改为:
"builds": [ { "src": "index.js", "use": "@vercel/[email protected]" } ],
更新成功了,但是后端的测试页面是空的,但是管理页面又可以正常打开,上方更新横幅也消失了,博客内的评论也是正常的,不知道是怎么回事


I tried to modify the node version in vercel.json to:
"builds": [ { "src": "index.js", "use": "@vercel/[email protected]" } ],
The update was successful, but the back-end test page is empty, but the management page can be opened normally, the update banner above has disappeared, and the comments in the blog are normal. I don’t know what’s going on

@conge
Copy link

conge commented Feb 13, 2024

我模仿着,将 vercel.json内的node版本修改为: "builds": [ { "src": "index.js", "use": "@vercel/[email protected]" } ], deploy 成功。

在博客上可以显示评论,发评论。

同样出现后端测试页面空白: https://waline.livingwithfcs.org/

我尝试将vercel.json内的node版本修改为: "builds": [ { "src": "index.js", "use": "@vercel/[email protected]" } ], 更新成功了,但是后端的测试页面是空的,但是管理页面又可以正常打开,上方更新横幅也消失了,博客内的评论也是正常的,不知道是怎么回事

@lizheming
Copy link
Collaborator

lizheming commented Feb 14, 2024

Node 版本的问题,应该是 Vercel 的问题,我看目前已经修复好了。群里反馈的 serverURL 首页白屏的问题,可以升级到最新版 @waline/[email protected] 解决。


The problem with the Node version should be a problem with Vercel. I think it has been fixed now. The problem of a white screen on the serverURL homepage reported in the group can be solved by upgrading to the latest version @waline/[email protected].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants