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

node版本不兼容 #128

Open
Jesence opened this issue Jul 17, 2024 · 5 comments
Open

node版本不兼容 #128

Jesence opened this issue Jul 17, 2024 · 5 comments

Comments

@Jesence
Copy link

Jesence commented Jul 17, 2024

你好,我现在遇到node版本不兼容的问题,公司用的node版本是20的,现在打包构建报错,请问可以怎么解决呢?
错误如下:
error [email protected]: The engine "node" is incompatible with this module. Expected version "~14||~16". Got "20.15.1"
error Found incompatible module.

@heylight
Copy link
Owner

通过nvm切换一下node版本吧

@Jesence
Copy link
Author

Jesence commented Jul 22, 2024

项目是基于20的node版本开发的,现在自动化打包部署无法通过,是否可以支持下20版本的node

@heylight
Copy link
Owner

heylight commented Aug 17, 2024

1.如果通过npm安装的这个包,不依赖项目的node版本
2.如果是fork的代码,建议自行修改一下构建工具
3.本项目之前使用过更高的node版本构建项目,但因为有兼容性问题回退了。现在你可以查看并使用master提交记录ec2b49d520fb819ee6e8570ac31459bddff6d8ae

@ws4934
Copy link

ws4934 commented Dec 15, 2024

项目是基于20的node版本开发的,现在自动化打包部署无法通过,是否可以支持下20版本的node

换成vite打包就好了,这项目没其他依赖,很好换。

@heylight
Copy link
Owner

heylight commented Jan 5, 2025

现在已经支持了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants