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

相关推荐
G***E3161 分钟前
前端技术的下一场深变:从工程化到智能化的全面升级
前端
曼巴UE59 小时前
UE FString, FName ,FText 三者转换,再次学习,官方文档理解
服务器·前端·javascript
行走的陀螺仪10 小时前
高级前端 Input 公共组件设计方案(Vue3 + TypeScript)
前端·javascript·typescript·vue·组件设计方案
一颗不甘坠落的流星10 小时前
【Antd】基于 Upload 组件,导入Json文件并转换为Json数据
前端·javascript·json
LYFlied10 小时前
Vue2 与 Vue3 虚拟DOM更新原理深度解析
前端·javascript·vue.js·虚拟dom
Lucky_Turtle10 小时前
【Node】npm install报错npm error Cannot read properties of null (reading ‘matches‘)
前端·npm·node.js
小飞侠在吗11 小时前
vue shallowRef 与 shallowReacitive
前端·javascript·vue.js
惜分飞11 小时前
sql server 事务日志备份异常恢复案例---惜分飞
前端·数据库·php
GISer_Jing12 小时前
WebGL实例化渲染:性能提升策略
前端·javascript·webgl