vue-element-plus-admin vite\bin\vite.js code: 'MODULE_NOT_FOUND',
Error: Cannot find module 'D:\Projects\01.SourceCode\Web\trunk\Admin-v3\node_modules\vite\bin\vite.js'
at Function._resolveFilename (node:internal/modules/cjs/loader:1401:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1057:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1062:22)
at Function._load (node:internal/modules/cjs/loader:1211:37)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5)
at node:internal/main/run_main_module:36:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v22.17.0
ELIFECYCLE Command failed with exit code 1.
原因:代码目录改了下名,v2 改成了 v3
解决方案:需要删除 node_modules 目录,重新 pnpm install
本文来自博客园,作者:VipSoft 转载请注明原文链接:https://www.cnblogs.com/vipsoft/p/19026599
浙公网安备 33010602011771号