【无标题】

报错信息:

C:\Users\lenovo\vite-project>cnpm run dev
[email protected] dev C:\Users\lenovo\vite-project
vite
error when starting dev server:
Error: Failed to resolve vue/compiler-sfc.
@vitejs/plugin-vue requires vue (>=3.2.25) to be present in the dependency tree.
at resolveCompiler (C:\Users\lenovo\vite-project\node_modules_@[email protected]@@vitejs\plugin-vue\dist\index.js:3954:11)
at Context.buildStart (C:\Users\lenovo\vite-project\node_modules_@[email protected]@@vitejs\plugin-vue\dist\index.js:4682:46)
at C:\Users\lenovo\vite-project\[email protected]@vite\dist\node\chunks\dep-27bc1ab8.js:36587:46
at Array.map ()
at Object.buildStart (C:\Users\lenovo\vite-project\[email protected]@vite\dist\node\chunks\dep-27bc1ab8.js:36585:39)
at Server.httpServer.listen (C:\Users\lenovo\vite-proj

你可能感兴趣的:(vue)