Downgrade latest version of Vite to version @2.5.10

1.2k Views Asked by At

I installed Vite @4.2.1 in my project. I want to downgrade it to version @2.5.10 because, my app is not reloading when a component is modified. How can I do it?

VITE v4.2.1 ready in 469 ms

Searched on the internet and did not get any answers. Can I downgrade it?

1

There are 1 best solutions below

0
VVD On BEST ANSWER

Try the following:

npm install <package>@<version>

In case you have components, you might consider updating their code.

Example:

npm install [email protected]