[Vuejs]-Missing Script "vite" when run vue project

2👍

The first error indicates that you are using an older version of node.js. I recently bumped into that. Check this thread for more details

As per vite’s site:

Compatibility Note

Vite requires Node.js version 14.18+, 16+. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it.

The second error is quite correct though. There is no such script called vite in your package.json.

try npm run preview.

👤Zarko

Leave a comment