chore: update package.json with engines node requirement#20319
chore: update package.json with engines node requirement#20319Michael-Choi wants to merge 1 commit intovitejs:mainfrom
Conversation
|
The engines doesn't need to be specified in template's package.json. It's already specified in Vite's package.json, which package managers should already pick up and warn about it. |
|
I think we can consider synchronizing the engine version information in the template. For example, I initialized a project in the node18 environment through the The default vite version in our create-vite repository is 7.0.3. Therefore, after initializing the project, we explicitly specify the node version required by vite to tell users the reason for the error. Refer to #20287, when vite7 was first released, many users mentioned similar issues. |
|
if there's anything I can do to help, would love to hop in and give it a try |
This won't show the warning for the users that upgraded Vite 6 -> 7. |
|
Looks great. 👍 |
Ran into
When running
pnpm run devwith a new vite react project with v7, it requires nodeNode.js v20.19.0+
Node.js v22.12.0+
Added engines for a clearer error message
Description
#20287