appium run(appium-14.1.16)

时间:2017-02-26 07:14:00

标签: selenium testing automated-tests appium qa

我正在Ubuntu上运行appium 1.4.1.16。使用以下命令启动appium服务器后:

appium &

我正在接受未被捕获的例外:

  

错误:uncaughtException:找不到模块' internal / fs' date = Sun Feb 26 2017 13:08:48 GMT + 0600(BDT),pid = 18190,uid = 1000,gid = 1000,cwd = / home / pc / .linuxbrew / lib / node_modules / appium,execPath = / home /pc/.linuxbrew/Cellar/node/7.5.0/bin/node,version = v7.5.0,argv = [/ home / pc / .linuxbrew / Cellar / node / 7.5.0 / bin / node,/ home / pc / .linuxbrew / bin / appium],rss = 99041280,heapTotal = 79945728,heapUsed = 46807408,external = 204307,loadavg = [0.67529296875,0.73681640625,0.74658203125],uptime = 3424,trace = [column = 15,file = module .js,function = Function.Module._resolveFilename,line = 470,method = Module._resolveFilename,native = false,column = 25,file = module.js,function = Function.Module._load,line = 418,method = Module ._load,native = false,column = 17,file = module.js,function = Module.require,line = 498,method = require,native = false,column = 19,file = internal / module.js,function = require ,line = 20,method = null,native = false,column = 20,file = evalmachine。,function = null,line = 18,method = null,native = false,column = 1,file = / home / pc /。 linuxbrew / lib目录/ node_modules / appium / node_modules / md5c alculator / node_modules / unzip / node_modules / fstream / node_modules / graceful-fs / fs.js,function =,line = 11,method = null,native = false,column = 32,file = module.js,function = Module._compile ,line = 571,method = _compile,native = false,column = 10,file = module.js,function = Object.Module._extensions..js,line = 580,method = Module._extensions..js,native = false ,column = 32,file = module.js,function = Module.load,line = 488,method = load,native = false,column = 12,file = module.js,function = tryModuleLoad,line = 447,method = null ,native = false,column = 3,file = module.js,function = Function.Module._load,line = 439,method = Module._load,native = false,column = 17,file = module.js,function = Module .require,line = 498,method = require,native = false,column = 19,file = internal / module.js,function = require,line = 20,method = null,native = false,column = 27,file = / home / pc / .linuxbrew / lib / node_modules / appium / node_modules / md5calculator / node_modules / unzip / node_modules / fstream / node_modules / graceful-fs / graceful-fs.js,function =,line = 3,method = nu ll,native = false,column = 32,file = module.js,function = Module._compile,line = 571,method = _compile,native = false,column = 10,file = module.js,function = Object.Module。 _extensions..js,line = 580,method = Module._extensions..js,native = false,column = 32,file = module.js,function = Module.load,line = 488,method = load,native = false, column = 12,file = module.js,function = tryModuleLoad,line = 447,method = null,native = false,column = 3,file = module.js,function = Function.Module._load,line = 439,method = Module._load,native = false,column = 17,file = module.js,function = Module.require,line = 498,method = require,native = false,column = 19,file = internal / module.js,function = require,line = 20,method = null,native = false,column = 10,file = / home / pc / .linuxbrew / lib / node_modules / appium / node_modules / md5calculator / node_modules / unzip / node_modules / fstream / lib / reader。 js,function =,line = 4,method = null,native = false,column = 32,file = module.js,function = Module._compile,line = 571,method = _compile,native = false,column = 10,file = module.js ,function = Object.Module._extensions..js,line = 580,method = Module._extensions..js,native = false,column = 32,file = module.js,function = Module.load,line = 488,method = load,native = false,column = 12,file = module.js,function = tryModuleLoad,line = 447,method = null,native = false,column = 3,file = module.js,function = Function.Module._load ,line = 439,method = Module._load,native = false,column = 17,file = module.js,function = Module.require,line = 498,method = require,native = false,column = 19,file = internal /module.js,function = require,line = 20,method = null,native = false,column = 18,file = / home / pc / .linuxbrew / lib / node_modules / appium / node_modules / md5calculator / node_modules / unzip / node_modules /fstream/fstream.js,function =,line = 2,method = null,native = false,column = 32,file = module.js,function = Module._compile,line = 571,method = _compile,native = false, column = 10,file = module.js,function = Object.Module._extensions..js,line = 580,method = Module._extensions..js,native = false,column = 32,file = module.js,function =模块。 load,line = 488,method = load,native = false,column = 12,file = module.js,function = tryModuleLoad,line = 447,method = null,native = false],stack = [错误:无法找到模块& #39; internal / fs',在Function.Module._resolveFilename(module.js:470:15),在Function.Module._load(module.js:418:25),在Module.require(module.js) :498:17),at require(internal / module.js:20:19),at evalmachine。:18:20,at Object。 (/home/pc/.linuxbrew/lib/node_modules/appium/node_modules/md5calculator/node_modules/unzip/node_modules/fstream/node_modules/graceful-fs/fs.js:11:1),在Module._compile(module.js) :571:32),在Object.Module._extensions..js(module.js:580:10),在Module.load(module.js:488:32),在tryModuleLoad(module.js:447:12) ,在Function.Module._load(module.js:439:3),在Module.require(module.js:498:17),在require(internal / module.js:20:19),在Object。 (/home/pc/.linuxbrew/lib/node_modules/appium/node_modules/md5calculator/node_modules/unzip/node_modules/fstream/node_modules/graceful-fs/graceful-fs.js:3:27),在Module._compile(模块) .js:571:32),在Object.Module._extensions..js(module.js:580:10),在Module.load(module.js:488:32),在tryModuleLoad(module.js:447: 12),在Function.Module._load(module.js:439:3),在Module.require(module.js:498:17),在require(internal / module.js:20:19),在Object。 (/home/pc/.linuxbrew/lib/node_modules/appium/node_modules/md5calculator/node_modules/unzip/node_modules/fstream/lib/reader.js:4:10),在Module._compile(module.js:571:32) ),在Object.Module._extensions..js(module.js:580:10),在Module.load(module.js:488:32),在tryModuleLoad(module.js:447:12),在Function。 Module._load(module.js:439:3),在Module.require(module.js:498:17),在require(internal / module.js:20:19),在Object。 (/home/pc/.linuxbrew/lib/node_modules/appium/node_modules/md5calculator/node_modules/unzip/node_modules/fstream/fstream.js:2:18),在Module._compile(module.js:571:32),在Object.Module._extensions..js(module.js:580:10),在Module.load(module.js:488:32),在tryModuleLoad(module.js:447:12)]

1 个答案:

答案 0 :(得分:0)

看起来你已经在Linux中使用brew安装了节点。建议直接下载节点,然后解压缩并将bin文件夹添加到您的路径。使用bin文件夹中的npm安装appium npm install -g appium