Appium 1.9.1 启动报错 Fatal TypeError: Class constructor BaseDriver cannot be invoked without 'new&#
关山初度尘未洗,策马扬鞭再奋蹄!这篇文章主要讲述Appium 1.9.1 启动报错 Fatal TypeError: Class constructor BaseDriver cannot be invoked without '
new相关的知识,希望能为你提供帮助。
安装了appium 1.9.1后一直报错Fatal TypeError: Class constructor BaseDriver cannot be invoked without ‘new‘,无法启动,卸载后安装1.8.1可以正常使用了。
npm install -g cnpm --registry=https://registry.npm.taobao.org cnpm uninstall -g appium cnpm install -g [email protected]1.8.1 rm /usr/local/bin/appium ln -s /usr/local/Cellar/node/10.12.0/lib/node_modules/appium/build/lib/main.js /usr/local/bin/appium
yang$ appium [Appium] Welcome to Appium v1.8.1 [Appium] Appium REST http interface listener started on 0.0.0.0:4723
之前安装的1.9.0 1.9.1都报错,无法启动:
[[email protected]] link /usr/local/Cellar/node/10.12.0/bin/[email protected] -> /usr/local/Cellar/node/10.12.0/lib/node_modules/appium/build/lib/main.js
yang$ /usr/local/Cellar/node/10.12.0/lib/node_modules/appium/build/lib/main.js
(node:9164) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[Appium] Welcome to Appium v1.9.1
Fatal TypeError: Class constructor BaseDriver cannot be invoked without ‘new‘
at new AppiumDriver (/usr/local/Cellar/node/10.12.0/lib/node_modules/appium/lib/appium.js:131:19)
at main$ (/usr/local/Cellar/node/10.12.0/lib/node_modules/appium/lib/main.js:124:16)
at tryCatch (/usr/local/Cellar/node/10.12.0/lib/node_modules/appium/node_modules/[email protected]@babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/Cellar/node/10.12.0/lib/node_modules/appium/node_modules/[email protected]@babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/Cellar/node/10.12.0/lib/node_modules/appium/node_modules/[email protected]@babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/Cellar/node/10.12.0/lib/node_modules/appium/node_modules/[email protected]@babel-runtime/regenerator/runtime.js:136:37)
yang$ cnpm uninstall -g appium
【Appium 1.9.1 启动报错 Fatal TypeError: Class constructor BaseDriver cannot be invoked without ' new】
!-- p.p1>
推荐阅读
- c#开发移动APP-Xamarin入门扩展剖析
- Gradle自动实现Android组件化模块构建
- android完成注册页面的下拉框及单复选框
- 9Collaborative Metric Learning Recommendation System:Application to Theatrical Movie Releases----
- Jmeter入门13jmeter发送application/octet-stream二进制流数据
- Spring MVC - 02 RequestMapping映射请求
- 收集安卓手机在市场占比的网址查找
- ABAP的Package interface, 安卓的manifest.xml和Kubernetes的Capabilities
- 与安卓交互