Error: Cannot find module @rollup/rollup-win32-x64-msvc. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
at requireWithFriendlyError (D:\workspace\RuoYi-Vue3\node_modules\rollup\dist\native.js:59:9)
at Object.<anonymous> (D:\workspace\RuoYi-Vue3\node_modules\rollup\dist\native.js:68:76)
... 2 lines matching cause stack trace ...
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29)
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:530:24) {
[cause]: Error: Access is denied.
\\?\D:\workspace\RuoYi-Vue3\node_modules\@rollup\rollup-win32-x64-msvc\rollup.win32-x64-msvc.node
at Module._extensions..node (node:internal/modules/cjs/loader:1243:18)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at Module.require (node:internal/modules/cjs/loader:1061:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object.<anonymous> (D:\workspace\RuoYi-Vue3\node_modules\rollup\dist\native.js:68:76)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32) {
code: 'ERR_DLOPEN_FAILED'
}
}
重新启动了一下项目(基于若依vue3),就报这个错误了。
网上的方案是删除node_modules,重新安装之类的,我的问题是
360杀毒 把 rollup-win32-x64-msvc
给隔离了
放出来就好了