报错Failed to load plugin 'taro' declared in 'BaseConfig': Cannot find module 'eslint-plugin-taro'
Require stack:
D:\company\whjz_wechat_c\whjz_wechat_c__placeholder__.js
Referenced from: BaseConfig
internal/fs/utils.js:332
throw err;
^
Error: EPERM: operation not permitted, unlink 'C:\Users\admin\AppData\Roaming\npm-cache_npx\21036\node_modules\@tarojs\cli-convertor\node_modules\@swc\core-win32-x64-msvc\swc.win32-x64-msvc.node'
at Object.unlinkSync (fs.js:1255:3)
at fixWinEPERMSync (D:\soft\nvm\nvm\v14.19.0\node_modules\npm\node_modules\rimraf\rimraf.js:219:13)
at rimrafSync (D:\soft\nvm\nvm\v14.19.0\node_modules\npm\node_modules\rimraf\rimraf.js:319:28)
at D:\soft\nvm\nvm\v14.19.0\node_modules\npm\node_modules\rimraf\rimraf.js:350:5
at Array.forEach ()
at rmkidsSync (D:\soft\nvm\nvm\v14.19.0\node_modules\npm\node_modules\rimraf\rimraf.js:349:26)
at rmdirSync (D:\soft\nvm\nvm\v14.19.0\node_modules\npm\node_modules\rimraf\rimraf.js:342:7)
at fixWinEPERMSync (D:\soft\nvm\nvm\v14.19.0\node_modules\npm\node_modules\rimraf\rimraf.js:217:5)
at rimrafSync (D:\soft\nvm\nvm\v14.19.0\node_modules\npm\node_modules\rimraf\rimraf.js:319:28)
at D:\soft\nvm\nvm\v14.19.0\node_modules\npm\node_modules\rimraf\rimraf.js:350:5 {
errno: -4048,
syscall: 'unlink',
code: 'EPERM',
path: 'C:\Users\admin\AppData\Roaming\npm-cache\_npx\21036\node_modules\@tarojs\cli-convertor\node_modules\@swc\core-win32-x64-msvc\swc.win32-x64-msvc.node'
}
相关平台
微信小程序
小程序基础库: 2.33.0 使用框架: React
复现步骤
npx @tarojs/cli-convertor
期望结果
生成taroConvert
实际结果
报错Failed to load plugin 'taro' declared in 'BaseConfig': Cannot find module 'eslint-plugin-taro' Require stack:
at Object.unlinkSync (fs.js:1255:3) at fixWinEPERMSync (D:\soft\nvm\nvm\v14.19.0\node_modules\npm\node_modules\rimraf\rimraf.js:219:13) at rimrafSync (D:\soft\nvm\nvm\v14.19.0\node_modules\npm\node_modules\rimraf\rimraf.js:319:28) at D:\soft\nvm\nvm\v14.19.0\node_modules\npm\node_modules\rimraf\rimraf.js:350:5 at Array.forEach (
环境信息