╰_ 2020-08-10 09:23 采纳率: 70%
浏览 430
已采纳

appium-doctor 报错TypeError: expecting a function but got [object

C:\Users\Administrator>appium-doctor

C:\Users\Administrator\AppData\Roaming\npm\node_modules\appium-doctor\node_modules_bluebird@3.7.2@bluebird\js\release\promisify.js:270
throw new TypeError("expecting a function but got " + util.classString(fn));
^
TypeError: expecting a function but got [object Undefined]
at Function.promisify (C:\Users\Administrator\AppData\Roaming\npm\node_modules\appium-doctor\node_modules_bluebird@3.7.2@bluebird\js\release\promisify.js:270:15)
at Object. (C:\Users\Administrator\AppData\Roaming\npm\node_modules\appium-doctor\node_modules_appium-support@2.48.1@appium-support\lib\zip.js:17:20)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (C:\Users\Administrator\AppData\Roaming\npm\node_modules\appium-doctor\node_modules_appium-support@2.48.1@appium-support\index.js:10:1)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)

appium 运行时没有问题  ,版本1.15    求大神解答什么原因啊  环境变量也配置了  难不成配错了?下载安装的就是js文件
  • 写回答

1条回答 默认 最新

  • dabocaiqq 2020-08-10 14:44
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 unity实习让我做一个程序
  • ¥15 idea tomcat和sql驱动不匹配吗
  • ¥15 如何查看h3c 5130s-28f-si交换机配置 及更改网口
  • ¥15 HFSS仿真喇叭天线阵列方向图出现异常
  • ¥15 blender自发光强度
  • ¥15 FIR滤波器算法设计与实现(利用库函数firdec()
  • ¥15 利用单片机产生正弦信号,来测量差分放大电路放大倍数和共模放大倍数的思路和仿真
  • ¥60 关于mavlink的论文咨询
  • ¥66 定制开发肯德基自动化网站下单软件
  • ¥15 中科院研发的TextMind(文心)