Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Appium. Cannot find module 'appium-base-driver'

My appium GUI was working perfectly fine until today. When I tried to start appium I am getting this error. I don't know how to get around it. So any suggestions / solutions highly appreciated.

    Launching Appium with command: '/Applications/Appium.app/Contents/Resources/node/bin/node' appium/build/lib/main.js --pre-launch --debug-log-spacing --automation-name "Appium" --platform-name "Android" --platform-version "6.0" --app "/Users/iamtheuser/fitbit/automation/artifacts/myapp.apk" --language "en" --locale "US"

Error: Cannot find module 'appium-base-driver'
    at Function.Module._resolveFilename (module.js:339:15)
    at Function.Module._load (module.js:290:25)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (lib/main.js:7:58)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.Module.runMain (module.js:447:10)
    at startup (node.js:146:18)
    at node.js:404:3
like image 438
Mysterio Man Avatar asked Jun 16 '16 19:06

Mysterio Man


2 Answers

Install Appium Doctor and investigate whats wrong in it.

  1. Install Appium Doctor by below command:

    npm install appium-doctor -g
    
  2. Use Appium Doctor by below command:

    appium-doctor -h
    
like image 139
Vitthal Bobade Avatar answered Sep 20 '22 01:09

Vitthal Bobade


It seems you might :

  1. updated appium version
  2. might updated all other installed/removed gems/dependancies like nodeJS

Do you remember what activity have you done?

like image 40
Narendra Chandratre Avatar answered Sep 23 '22 01:09

Narendra Chandratre