下载了yarn后使用
yarn install
重新安装了依赖之后就可以运行了
如果上述方案解决不了,试试下面这个吧!
npm i vite @vitejs/plugin-vue --save-dev