Home > OS >  vite - create-vite got error in node version 18
vite - create-vite got error in node version 18

Time:10-07

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 enter image description here

Am I missing something?

CodePudding user response:

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

  • Related