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

相关推荐
万少6 小时前
用腻了 WorkBuddy 的默认界面?这个开源小工具给它换上了毛玻璃
前端·javascript·后端
海上彼尚10 小时前
Nodejs也能写Agent - 16.LangGraph篇 - 条件分支与循环
前端·后端·langchain·node.js
To_OC10 小时前
从 “卡死半天” 到 “打字机效果”:大模型流式输出前端实现全记录
前端·javascript·llm
SoaringHeart11 小时前
Flutter最佳实践:键盘辅助视图输入框天添加图片附件
前端·flutter
kyriewen11 小时前
我看完这篇安全论文——AI推荐的npm包,92%是编出来的
前端·javascript·ai编程
小心我捶你啊13 小时前
数据采集和Web解锁不是一回事,从用途到规则区分
前端·爬虫·网络协议
hunterandroid13 小时前
[鸿蒙从零到一] ArkUI 基础组件实战:Text、Image、Button 与 TextInput
前端
fsssb13 小时前
Chromium 源码学习笔记(五):一次点击,在进入 JS 之前先经历了什么?
前端
hunterandroid13 小时前
WorkManager 可靠性实战:唯一任务、重试与幂等设计
android·前端