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

相关推荐
小李子呢02111 小时前
前端八股CSS(2)---动画的实现方式
前端·javascript
GreenTea3 小时前
从 Claw-Code 看 AI 驱动的大型项目开发:2 人 + 10 个自治 Agent 如何产出 48K 行 Rust 代码
前端·人工智能·后端
渣渣xiong3 小时前
从零开始:前端转型AI agent直到就业第五天-第十一天
前端·人工智能
布局呆星4 小时前
Vue3 | 组件通信学习小结
前端·vue.js
C澒4 小时前
IntelliPro 企业级产研协作平台:前端智能生产模块设计与落地
前端·ai编程
OpenTiny社区5 小时前
重磅预告|OpenTiny 亮相 QCon 北京,共话生成式 UI 最新技术思考
前端·开源·ai编程
前端老实人灬5 小时前
web前端面试题
前端
Moment5 小时前
AI 全栈指南:NestJs 中的 Service Provider 和 Module
前端·后端·面试
IT_陈寒5 小时前
为什么我的JavaScript异步回调总是乱序执行?
前端·人工智能·后端