bash
npm run dev:h5
> app@1.0.0 dev:h5
> npm run build:h5 -- --watch
> app@1.0.0 build:h5
> taro build --type h5 --watch
👽 Taro v4.1.7
Error: The specified module could not be found.
\\?\C:\Users\admin\Desktop\app\node_modules\@tarojs\plugin-doctor-win32-x64-msvc\taro-doctor.win32-x64-msvc.node
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1651:18)
at Module.load (node:internal/modules/cjs/loader:1275:32)
at Function.Module._load (node:internal/modules/cjs/loader:1096:12)
at Module.require (node:internal/modules/cjs/loader:1298:19)
at require (node:internal/modules/helpers:182:18)
at Object.<anonymous> (C:\Users\admin\Desktop\app\node_modules\@tarojs\plugin-doctor\js-binding.js:72:29)
at Module._compile (node:internal/modules/cjs/loader:1529:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1613:10)
at Object.newLoader [as .js] (C:\Users\admin\Desktop\app\node_modules\pirates\lib\index.js:134:7)
at Module.load (node:internal/modules/cjs/loader:1275:32) {
code: 'ERR_DLOPEN_FAILED'
}
Error: The specified module could not be found.
\\?\C:\Users\admin\Desktop\app\node_modules\@tarojs\plugin-doctor-win32-x64-msvc\taro-doctor.win32-x64-msvc.node
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1651:18)
at Module.load (node:internal/modules/cjs/loader:1275:32)
at Function.Module._load (node:internal/modules/cjs/loader:1096:12)
at Module.require (node:internal/modules/cjs/loader:1298:19)
at require (node:internal/modules/helpers:182:18)
at Object.<anonymous> (C:\Users\admin\Desktop\app\node_modules\@tarojs\plugin-doctor\js-binding.js:72:29)
at Module._compile (node:internal/modules/cjs/loader:1529:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1613:10)
at Object.newLoader [as .js] (C:\Users\admin\Desktop\app\node_modules\pirates\lib\index.js:134:7)
at Module.load (node:internal/modules/cjs/loader:1275:32) {
code: 'ERR_DLOPEN_FAILED'
}
C:\Users\admin\Desktop\app\node_modules\@tarojs\service\dist\utils\index.js:89
throw new Error(`插件依赖 "${item}" 加载失败,请检查插件配置`);
^
Error: 插件依赖 "C:\Users\admin\Desktop\app\node_modules\@tarojs\cli\dist\presets\commands\build.js" 加
载失败,请检查插件配置
at apply (C:\Users\admin\Desktop\app\node_modules\@tarojs\service\src\utils\index.ts:85:19)
at Kernel.initPlugin (C:\Users\admin\Desktop\app\node_modules\@tarojs\service\src\Kernel.ts:190:5)
at Kernel.resolvePlugins (C:\Users\admin\Desktop\app\node_modules\@tarojs\service\src\Kernel.ts:159:12)
at Kernel.initPresetsAndPlugins (C:\Users\admin\Desktop\app\node_modules\@tarojs\service\src\Kernel.ts:132:10)
at Kernel.<anonymous> (C:\Users\admin\Desktop\app\node_modules\@tarojs\service\src\Kernel.ts:364:10)
at Generator.next (<anonymous>)
at C:\Users\admin\Desktop\app\node_modules\@tarojs\service\dist\Kernel.js:8:71
at new Promise (<anonymous>)
at __awaiter (C:\Users\admin\Desktop\app\node_modules\@tarojs\service\dist\Kernel.js:4:12)
at Kernel.run (C:\Users\admin\Desktop\app\node_modules\@tarojs\service\dist\Kernel.js:291:16)
直接在Microsoft Visual C++ Redistributable latest supported downloads下载最新的VC++插件并安装,问题直接解决。