Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: align Node version with Vite 7 #774

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

Merged
cexbrayat merged 1 commit into vuejs:main from skirtles-code:node-20.19
Jul 1, 2025

Conversation

Copy link
Contributor

@skirtles-code skirtles-code commented Jul 1, 2025

Vite 7 requires Node versions 20.19+ or 22.12+. Vite docs.

With older versions of Node, starting the dev server will yield an error:

crypto.hash is not a function

More details: vitejs/vite#20287.

I've aligned the engines.node value with create-vite:

https://github.com/vitejs/vite/blob/3e81af38a80c7617aba6bf3300d8b4267570f9cf/packages/create-vite/package.json#L23

While create-vue itself doesn't require these Node versions, I think it makes sense to align engines.node with versions that can run the created project.

cexbrayat reacted with thumbs up emoji
@cexbrayat cexbrayat merged commit a9e76b0 into vuejs:main Jul 1, 2025
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@cexbrayat cexbrayat cexbrayat approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /