Kurt
Kurt

Reputation: 734

vite - create-vite got error in node version 18

I am using yarn create vite to create my vue project, but after executed command I got following error message:

error [email protected]: The engine "node" is incompatible with this module. Expected version ">=12 <=16". Got "18.1.0" error Found incompatible module.

I know that error message means I need to use node version between 12~16, but I am confused that there's no mentioned node version 18 cannot use in vite document.

enter image description here

Also, in the package.json, there's only limit on 14.18.0 or 16+

enter image description here

Am I missing something?

Upvotes: 1

Views: 1591

Answers (1)

yoduh
yoduh

Reputation: 14639

The error is not with vite but with expo-cli as it says right at the start of your error message: error [email protected]:. As the expo-cli docs state:

Only Node.js LTS releases (even-numbered) are recommended

The latest node LTS version being 16.17.1

Upvotes: 1

Related Questions