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










3















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









share|improve this question



















  • 1





    Maybe reinstall Appium.app would fix your error

    – Xiao
    Jun 17 '16 at 4:10











  • What version are you using ?

    – Vijeta Mehra
    Oct 10 '17 at 4:47















3















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









share|improve this question



















  • 1





    Maybe reinstall Appium.app would fix your error

    – Xiao
    Jun 17 '16 at 4:10











  • What version are you using ?

    – Vijeta Mehra
    Oct 10 '17 at 4:47













3












3








3








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









share|improve this question
















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






android appium npm-install python-appium






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 2 '18 at 3:12









Jafar Raza

977




977










asked Jun 16 '16 at 19:01









Mysterio ManMysterio Man

1,0921917




1,0921917







  • 1





    Maybe reinstall Appium.app would fix your error

    – Xiao
    Jun 17 '16 at 4:10











  • What version are you using ?

    – Vijeta Mehra
    Oct 10 '17 at 4:47












  • 1





    Maybe reinstall Appium.app would fix your error

    – Xiao
    Jun 17 '16 at 4:10











  • What version are you using ?

    – Vijeta Mehra
    Oct 10 '17 at 4:47







1




1





Maybe reinstall Appium.app would fix your error

– Xiao
Jun 17 '16 at 4:10





Maybe reinstall Appium.app would fix your error

– Xiao
Jun 17 '16 at 4:10













What version are you using ?

– Vijeta Mehra
Oct 10 '17 at 4:47





What version are you using ?

– Vijeta Mehra
Oct 10 '17 at 4:47












6 Answers
6






active

oldest

votes


















2














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?






share|improve this answer






























    1














    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






    share|improve this answer






























      0














      Try
      Intall gulp with npm install -g gulp






      share|improve this answer






























        0














        The issue has happened because you might have updated java-client but not the appium server.



        Say if your java-client version is 6.0.0-BETA4, you need to use Appium v1.7.2



        Please update how you resolved this issue.






        share|improve this answer






























          0














          @Mysterio Man, hi . Could You please share what versions: java-client/appium GUI do You use ?
          I'd recommend to try the following alternatives:



          • Install gulp using npm -g gulp

          • check for versions of appium GUI

          • check for java-client versions ; Maven repo

          In my proj I'm using dependency



           <dependency>
          <groupId>io.appium</groupId>
          <artifactId>java-client</artifactId>
          <version>7.0.0</version>
          </dependency>


          Works fine for me.

          And also installing appium i accurately followed this step-by-step setup instruction . Didnt face any issues.
          In worst case- might be helpful to reinstall everything from scratch.
          Let me know if You have resolved the issue.
          Regards,
          Eugene






          share|improve this answer
































            -1














            You can install the base driver by below command:



            npm i appium-base-driver





            share|improve this answer
























              Your Answer






              StackExchange.ifUsing("editor", function ()
              StackExchange.using("externalEditor", function ()
              StackExchange.using("snippets", function ()
              StackExchange.snippets.init();
              );
              );
              , "code-snippets");

              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "1"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f37867413%2fappium-cannot-find-module-appium-base-driver%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              6 Answers
              6






              active

              oldest

              votes








              6 Answers
              6






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              2














              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?






              share|improve this answer



























                2














                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?






                share|improve this answer

























                  2












                  2








                  2







                  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?






                  share|improve this answer













                  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?







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jun 24 '16 at 17:33









                  NarendraCNarendraC

                  484716




                  484716























                      1














                      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






                      share|improve this answer



























                        1














                        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






                        share|improve this answer

























                          1












                          1








                          1







                          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






                          share|improve this answer













                          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







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Oct 22 '18 at 8:37









                          Vitthal BobadeVitthal Bobade

                          6110




                          6110





















                              0














                              Try
                              Intall gulp with npm install -g gulp






                              share|improve this answer



























                                0














                                Try
                                Intall gulp with npm install -g gulp






                                share|improve this answer

























                                  0












                                  0








                                  0







                                  Try
                                  Intall gulp with npm install -g gulp






                                  share|improve this answer













                                  Try
                                  Intall gulp with npm install -g gulp







                                  share|improve this answer












                                  share|improve this answer



                                  share|improve this answer










                                  answered Dec 18 '17 at 4:35









                                  Kiran AntonyKiran Antony

                                  197




                                  197





















                                      0














                                      The issue has happened because you might have updated java-client but not the appium server.



                                      Say if your java-client version is 6.0.0-BETA4, you need to use Appium v1.7.2



                                      Please update how you resolved this issue.






                                      share|improve this answer



























                                        0














                                        The issue has happened because you might have updated java-client but not the appium server.



                                        Say if your java-client version is 6.0.0-BETA4, you need to use Appium v1.7.2



                                        Please update how you resolved this issue.






                                        share|improve this answer

























                                          0












                                          0








                                          0







                                          The issue has happened because you might have updated java-client but not the appium server.



                                          Say if your java-client version is 6.0.0-BETA4, you need to use Appium v1.7.2



                                          Please update how you resolved this issue.






                                          share|improve this answer













                                          The issue has happened because you might have updated java-client but not the appium server.



                                          Say if your java-client version is 6.0.0-BETA4, you need to use Appium v1.7.2



                                          Please update how you resolved this issue.







                                          share|improve this answer












                                          share|improve this answer



                                          share|improve this answer










                                          answered Apr 9 '18 at 12:09









                                          Benz MPBenz MP

                                          12




                                          12





















                                              0














                                              @Mysterio Man, hi . Could You please share what versions: java-client/appium GUI do You use ?
                                              I'd recommend to try the following alternatives:



                                              • Install gulp using npm -g gulp

                                              • check for versions of appium GUI

                                              • check for java-client versions ; Maven repo

                                              In my proj I'm using dependency



                                               <dependency>
                                              <groupId>io.appium</groupId>
                                              <artifactId>java-client</artifactId>
                                              <version>7.0.0</version>
                                              </dependency>


                                              Works fine for me.

                                              And also installing appium i accurately followed this step-by-step setup instruction . Didnt face any issues.
                                              In worst case- might be helpful to reinstall everything from scratch.
                                              Let me know if You have resolved the issue.
                                              Regards,
                                              Eugene






                                              share|improve this answer





























                                                0














                                                @Mysterio Man, hi . Could You please share what versions: java-client/appium GUI do You use ?
                                                I'd recommend to try the following alternatives:



                                                • Install gulp using npm -g gulp

                                                • check for versions of appium GUI

                                                • check for java-client versions ; Maven repo

                                                In my proj I'm using dependency



                                                 <dependency>
                                                <groupId>io.appium</groupId>
                                                <artifactId>java-client</artifactId>
                                                <version>7.0.0</version>
                                                </dependency>


                                                Works fine for me.

                                                And also installing appium i accurately followed this step-by-step setup instruction . Didnt face any issues.
                                                In worst case- might be helpful to reinstall everything from scratch.
                                                Let me know if You have resolved the issue.
                                                Regards,
                                                Eugene






                                                share|improve this answer



























                                                  0












                                                  0








                                                  0







                                                  @Mysterio Man, hi . Could You please share what versions: java-client/appium GUI do You use ?
                                                  I'd recommend to try the following alternatives:



                                                  • Install gulp using npm -g gulp

                                                  • check for versions of appium GUI

                                                  • check for java-client versions ; Maven repo

                                                  In my proj I'm using dependency



                                                   <dependency>
                                                  <groupId>io.appium</groupId>
                                                  <artifactId>java-client</artifactId>
                                                  <version>7.0.0</version>
                                                  </dependency>


                                                  Works fine for me.

                                                  And also installing appium i accurately followed this step-by-step setup instruction . Didnt face any issues.
                                                  In worst case- might be helpful to reinstall everything from scratch.
                                                  Let me know if You have resolved the issue.
                                                  Regards,
                                                  Eugene






                                                  share|improve this answer















                                                  @Mysterio Man, hi . Could You please share what versions: java-client/appium GUI do You use ?
                                                  I'd recommend to try the following alternatives:



                                                  • Install gulp using npm -g gulp

                                                  • check for versions of appium GUI

                                                  • check for java-client versions ; Maven repo

                                                  In my proj I'm using dependency



                                                   <dependency>
                                                  <groupId>io.appium</groupId>
                                                  <artifactId>java-client</artifactId>
                                                  <version>7.0.0</version>
                                                  </dependency>


                                                  Works fine for me.

                                                  And also installing appium i accurately followed this step-by-step setup instruction . Didnt face any issues.
                                                  In worst case- might be helpful to reinstall everything from scratch.
                                                  Let me know if You have resolved the issue.
                                                  Regards,
                                                  Eugene







                                                  share|improve this answer














                                                  share|improve this answer



                                                  share|improve this answer








                                                  edited Mar 2 at 7:59

























                                                  answered Mar 2 at 7:54









                                                  eugene.polschikoveugene.polschikov

                                                  6,19422239




                                                  6,19422239





















                                                      -1














                                                      You can install the base driver by below command:



                                                      npm i appium-base-driver





                                                      share|improve this answer





























                                                        -1














                                                        You can install the base driver by below command:



                                                        npm i appium-base-driver





                                                        share|improve this answer



























                                                          -1












                                                          -1








                                                          -1







                                                          You can install the base driver by below command:



                                                          npm i appium-base-driver





                                                          share|improve this answer















                                                          You can install the base driver by below command:



                                                          npm i appium-base-driver






                                                          share|improve this answer














                                                          share|improve this answer



                                                          share|improve this answer








                                                          edited Nov 14 '18 at 10:21









                                                          Udhav Sarvaiya

                                                          2,30571929




                                                          2,30571929










                                                          answered Nov 14 '18 at 9:13









                                                          zuzeaczuzeac

                                                          1




                                                          1



























                                                              draft saved

                                                              draft discarded
















































                                                              Thanks for contributing an answer to Stack Overflow!


                                                              • Please be sure to answer the question. Provide details and share your research!

                                                              But avoid


                                                              • Asking for help, clarification, or responding to other answers.

                                                              • Making statements based on opinion; back them up with references or personal experience.

                                                              To learn more, see our tips on writing great answers.




                                                              draft saved


                                                              draft discarded














                                                              StackExchange.ready(
                                                              function ()
                                                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f37867413%2fappium-cannot-find-module-appium-base-driver%23new-answer', 'question_page');

                                                              );

                                                              Post as a guest















                                                              Required, but never shown





















































                                                              Required, but never shown














                                                              Required, but never shown












                                                              Required, but never shown







                                                              Required, but never shown

































                                                              Required, but never shown














                                                              Required, but never shown












                                                              Required, but never shown







                                                              Required, but never shown







                                                              Popular posts from this blog

                                                              Use pre created SQLite database for Android project in kotlin

                                                              Darth Vader #20

                                                              Ondo