weixin_45128003
╰_
2020-08-10 09:23

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

  • c++
  • lua
  • bash
  • actionscript
  • 开发语言

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条回答

为你推荐