为什么我得到"找不到模块' stack-trace'"推出Appium Server?

时间:2014-05-02 11:22:05

标签: android appium

我正在使用这些教程来了解如何安装,配置和运行Appium。这就是我所做的:

  1. 我从http://appium.io/安装了Appiumforwindows版本0.18.0

  2. 启动了Appium应用程序

  3. 现在,我提供了GUI,菜单栏上有三个选项:

  4. --Preferences
    --Inspector
    --Launch
    

    以及其他各种配置选项。

    我将描述配置的内容:

    从首选项中,我检查了以下选项:

    • 检查更新
    • 每个会话后重置应用程序状态
    • 预发布申请

    此外:

    • IP地址:127.0.0.1(默认主机名)
    • 端口:4723(默认)
    • 应用程序路径:.. \ sdk \ build-tools \ android-4.4.2(我希望测试的APK文件的位置 - 在这里,我使用dropbox apk)

    在Android标签中,我设置了以下内容:

    • 封装
    • 活动
    • 启动AVD

    通过在apk文件的位置运行以下命令,从命令提示符获取包和活动(如上所述" Application Path":

    aapt dump badging xxx.apk (where xxx is filename of the dropbox apk) 
    

    现在,完成所有这些操作后,尝试启动Appium时,输出中出现以下错误:

    >Starting Node Server             
    >ERROR: module.js:340                                 
    >ERROR:   throw err;                    
    >ERROR: Error: Cannot find module 'stack-trace'           
    >ERROR:    at Function.Module._resolveFilename (module.js:338:15)         
    >ERROR:    at Function.Module._load (module.js:280:25)              
    >ERROR:    at Module.require (module.js:364:17)           
    >ERROR:    at require (module.js:380:17)           
    >ERROR:    at Object <anonymous> (..\\Appium\node_modules\winston\lib\winston\exception.js:10:18  
    >ERROR:    at Module.compile(module.js:456:26)                  
    >ERROR:    at Object.Module._extensions.js (module.js:474:10)        
    >ERROR:    at Module.load (module.js:356:32)         
    >ERROR:    at Function.Module._load (module.js:312:12)                  
    >ERROR:    at Module.require (module.js:364:17)             
    >ERROR:                      
    >Node Server Process Ended
    

    因此,它似乎无法找到模块&#39; stack-trace&#39;在各个列出的地区。为什么不?

    搜索堆栈跟踪文件,导致三个stack-trace.js文件位于以下路径中:

    • \ appium \ node_modules \沙盒模块\ node_modules
    • \ appium \ node_modules \提示\ node_modules \温斯顿\ node_modules
    • \ appium \ node_modules \ binary_cookies \ node_modules \温斯顿\ node_modules

    我错过了什么?

1 个答案:

答案 0 :(得分:0)

安装模块

npm install stack-trace