No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    There was an error trying to install Cordova support

    Help
    3
    11
    1689
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tymons last edited by

      I was trying to build/ add plataform cordova app

      PS C:\Users\User\Documents\apps\app_pelagem_gatos> quasar build -m cordova -T android --debug
      
       Build mode........ cordova
       Pkg quasar........ v1.13.1
       Pkg @quasar/app... v2.0.8
       Debugging......... enabled
       Publishing........ no
       Packaging mode.... cordova
      
       Configured browser support (at least 86.16% of global marketshare):
       · Chrome for Android >= 84
       · Firefox for Android >= 68
       · Android >= 81
       · Chrome >= 75
       · Edge >= 80
       · Firefox >= 71
       · iOS >= 10.0-10.2
       · Opera >= 65
       · Safari >= 10.1
      
       App · ⚠️  Quasar CORDOVA is missing. Installing it...
      
      ? What is the Cordova app id? org.cordova.quasar.app
       App · Creating Cordova source folder...
       App · [sync] Running "cordova create src-cordova org.cordova.quasar.app App_pelagem_gatos"
      
      'cordova' não é reconhecido como um comando interno
      ou externo, um programa operável ou um arquivo em lotes.
      
       App · ⚠️  Command "cordova" failed with exit code: 1
       App · ⚠️  There was an error trying to install Cordova support
      

      I alredy updated cordova/quasar/npm/node
      cordova -v
      9.0.0 (cordova-lib@9.0.1)
      quasar -v
      2.0.8
      npm -v
      6.14.7
      node -v
      v14.8.0

      if i try to use the comand “cordova create src-cordova org.cordova.quasar.app App_pelagem_gatos” it works

      but the quasar build -m cordova -T android keep showing the same error.

      someone have the same problem on latest versions?

      1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel last edited by dobbel

        tip: for windows use npm only for global packages and yarn for project packages

        what does quasar info say?

        T 1 Reply Last reply Reply Quote 0
        • T
          tymons @dobbel last edited by

          @dobbel said in There was an error trying to install Cordova support:

          quasar info

          
          Operating System - Windows_NT(10.0.18362) - win32/x64
          NodeJs - 14.8.0
          
          Global packages
            NPM - 6.14.7
            yarn - Not installed
            @quasar/cli - 1.1.0
            @quasar/icongenie - Not installed
            cordova - Not installed
          
          Important local packages
            quasar - 1.13.1 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
            @quasar/app - 2.0.8 -- Quasar Framework local CLI
            @quasar/extras - 1.9.4 -- Quasar Framework fonts, icons and animations
            eslint-plugin-quasar - Not installed
            vue - 2.6.12 -- Reactive, component-oriented view layer for modern web interfaces.
            vue-router - 3.2.0 -- Official router for Vue.js 2
            vuex - 3.5.1 -- state management for Vue.js
            electron - Not installed
            electron-packager - Not installed
            electron-builder - Not installed
            @capacitor/core - Not installed
            @capacitor/cli - Not installed
            @capacitor/android - Not installed
            @capacitor/ios - Not installed
            @babel/core - 7.11.4 -- Babel compiler core.
            webpack - 4.44.1 -- Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
            webpack-dev-server - 3.11.0 -- Serves a webpack app. Updates the browser on changes.
            workbox-webpack-plugin - Not installed
            register-service-worker - 1.7.1 -- Script for registering service worker, with hooks
            typescript - 3.9.5 -- TypeScript is a language for application scale JavaScript development
          
          Quasar App Extensions
            *None installed*
          
          
          dobbel 1 Reply Last reply Reply Quote 0
          • dobbel
            dobbel @tymons last edited by dobbel

            @tymons

            the weird thing is that quasar info reports Global packages cordova - Not installed (that’s the global cordova cli not the lib). But you can run cordova just fine.

            • You could try to remove cordova globally and reinstall. ( Quasar info should report that cordova is installed)
            • Try node 12.x lts
            • again: for windows use npm only for global packages and yarn for project packages.
            T 1 Reply Last reply Reply Quote 1
            • T
              tymons @dobbel last edited by

              @dobbel thanks dobbel, it works
              i installed the Yarn
              uninstalled cordova -g
              and instaled cordova 10.0.0 and now it works

              Operating System - Windows_NT(10.0.18362) - win32/x64
              NodeJs - 14.8.0
              
              Global packages
                NPM - 6.14.7
                yarn - 1.22.4
                @quasar/cli - 1.1.0
                @quasar/icongenie - 2.3.1
                cordova - 10.0.0
              
              Important local packages
                quasar - 1.13.1 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
                @quasar/app - 2.0.8 -- Quasar Framework local CLI
                @quasar/extras - 1.9.4 -- Quasar Framework fonts, icons and animations
                eslint-plugin-quasar - Not installed
                vue - 2.6.12 -- Reactive, component-oriented view layer for modern web interfaces.
                vue-router - 3.2.0 -- Official router for Vue.js 2
                vuex - 3.5.1 -- state management for Vue.js
                electron - Not installed
                electron-packager - Not installed
                electron-builder - Not installed
                @capacitor/core - Not installed
                @capacitor/cli - Not installed
                @capacitor/android - Not installed
                @capacitor/ios - Not installed
                @babel/core - 7.11.4 -- Babel compiler core.
                webpack - 4.44.1 -- Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
                webpack-dev-server - 3.11.0 -- Serves a webpack app. Updates the browser on changes.
                workbox-webpack-plugin - Not installed
                register-service-worker - 1.7.1 -- Script for registering service worker, with hooks
                typescript - 3.9.5 -- TypeScript is a language for application scale JavaScript development
              
              Quasar App Extensions
                *None installed*
              
              1 Reply Last reply Reply Quote 0
              • T
                tymons last edited by

                On the next day, the problem returns
                i try to uninstall e and install the cordova again with no results

                Operating System - Windows_NT(10.0.18362) - win32/x64
                NodeJs - 14.8.0
                
                Global packages
                  NPM - 6.14.7
                  yarn - Not installed
                  @quasar/cli - 1.1.0
                  @quasar/icongenie - Not installed
                  cordova - Not installed
                
                Important local packages
                  quasar - 1.13.1 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
                  @quasar/app - 2.0.8 -- Quasar Framework local CLI
                  @quasar/extras - 1.9.4 -- Quasar Framework fonts, icons and animations
                  eslint-plugin-quasar - Not installed
                  vue - 2.6.12 -- Reactive, component-oriented view layer for modern web interfaces.
                  vue-router - 3.2.0 -- Official router for Vue.js 2
                  vuex - 3.5.1 -- state management for Vue.js
                  electron - Not installed
                  electron-packager - Not installed
                  electron-builder - Not installed
                  @capacitor/core - Not installed
                  @capacitor/cli - Not installed
                  @capacitor/android - Not installed
                  @capacitor/ios - Not installed
                  @babel/core - 7.11.4 -- Babel compiler core.
                  webpack - 4.44.1 -- Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
                  webpack-dev-server - 3.11.0 -- Serves a webpack app. Updates the browser on changes.
                  workbox-webpack-plugin - Not installed
                  register-service-worker - 1.7.1 -- Script for registering service worker, with hooks
                  typescript - 3.9.5 -- TypeScript is a language for application scale JavaScript development
                
                Quasar App Extensions
                  *None installed*
                
                
                1 Reply Last reply Reply Quote 0
                • T
                  tymons last edited by

                  my coworker has the exact same problem on his PC

                  1 Reply Last reply Reply Quote 0
                  • metalsadman
                    metalsadman last edited by metalsadman

                    Down grade your node to 12 lts version.

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      tymons @metalsadman last edited by

                      @metalsadman i tryied it, it works right way, but when i came back to this project it stop working again

                      Operating System - Windows_NT(10.0.18362) - win32/x64
                      NodeJs - 12.18.3
                      
                      Global packages 
                        NPM - 6.14.6
                        yarn - 1.22.4
                        @quasar/cli - 1.1.0
                        @quasar/icongenie - Not installed
                        cordova - Not installed
                      
                      Important local packages
                        quasar - 1.13.1 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
                        @quasar/app - 2.0.8 -- Quasar Framework local CLI
                        @quasar/extras - 1.9.4 -- Quasar Framework fonts, icons and animations
                        eslint-plugin-quasar - Not installed
                        vue - 2.6.12 -- Reactive, component-oriented view layer for modern web interfaces.
                        vue-router - 3.2.0 -- Official router for Vue.js 2
                        vuex - 3.5.1 -- state management for Vue.js
                        electron - Not installed
                        electron-packager - Not installed
                        electron-builder - Not installed
                        @capacitor/core - Not installed
                        @capacitor/cli - Not installed
                        @capacitor/android - Not installed
                        @capacitor/ios - Not installed
                        @babel/core - 7.11.4 -- Babel compiler core.
                        webpack - 4.44.1 -- Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
                        webpack-dev-server - 3.11.0 -- Serves a webpack app. Updates the browser on changes.
                        workbox-webpack-plugin - Not installed
                        register-service-worker - 1.7.1 -- Script for registering service worker, with hooks
                        typescript - 3.9.5 -- TypeScript is a language for application scale JavaScript development
                      
                      Quasar App Extensions
                        *None installed*
                      
                      
                      1 Reply Last reply Reply Quote 0
                      • T
                        tymons last edited by

                        it works when i reinstall yarn.
                        that makes no sense.
                        i need to reinstall yarn every time ia want to use cordova (which i instaled with npm -g)
                        some one knows how quasar detect installations?

                        metalsadman 1 Reply Last reply Reply Quote 0
                        • metalsadman
                          metalsadman @tymons last edited by

                          @tymons it’s just the nature of the beast working with npm sometimes, I personally don’t get deps problem since I’m mostly up to date in versions, if it does happen just do common trouble shooting, deleting node_module folder, lock files, and run yarn. Use npm for globals, and yarn for local deps.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post