npm启动Taro框架报错

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++插件并安装,问题直接解决。

相关推荐
骑着蜗牛撵大象3278 小时前
多 Agent 分治协作:MapReduce 模式下的并行扇出与结果归并
前端
用户55318297328 小时前
Flutter iOS 热更新深入 Dart VM:读懂函数入口、解释执行与调用桥接
前端
前端snow8 小时前
为什么大厂要用Postgres + mogodb的框架?
前端
运维有小邓18 小时前
2026年主流AD域管理软件有哪些?
前端
Mickey同学8 小时前
提示词注入:AI 时代的「SQL 注入」
前端
deli0078 小时前
GROUP BY 先别想当然:我把 SQL 分组语义做成了沙盘,8 个实验 + 27 条自检全绿
前端
WayneX8 小时前
开源 Vue 3 组件库 Morya UI:把组件、文档、AI 工具链一起做进一个包
前端·vue.js·前端框架
用户15741568165348 小时前
页面白屏 + Invalid prop: type check failed for prop "options"?原来是 script setup 的 ref
前端
btcSteven9 小时前
给浏览器装了个「AI 操作员」:纯聊天帮你完成任何任务
前端
高晶9 小时前
一种小功率锂电池组充电器方案
前端·架构