4 Replies Latest reply on Aug 13, 2016 7:49 PM by hugoc57127277

    plugman fails to install plugins

    hugoc57127277

      I just installed plugman using npm, and I'm using Cordova v1.3.0.

       

      I get this error when I try to install a plugin:

       

      C:\Android-dev\cordova-android\bin\HybridAndroidApp>plugman install --platform android --project . --plugin cordova-plugin-device

      Fetching plugin "cordova-plugin-device" via npm

      Installing "cordova-plugin-device" for android

      Failed to install 'cordova-plugin-device':TypeError: pluginInfo.getEditConfigs is not a function

          at PlatformMunger.add_plugin_changes (C:\Android-dev\cordova-android\bin\HybridAndroidApp\cordova\node_modules\cordova-common\ src\ConfigChanges\ConfigChanges.js:134:42)

          at C:\Android-dev\cordova-android\bin\HybridAndroidApp\cordova\node_modules\cordova-common\s rc\PluginManager.js:126:25

          at _fulfilled (C:\Android-dev\cordova-android\bin\HybridAndroidApp\cordova\node_modules\q\q.js:834:54)

          at self.promiseDispatch.done (C:\Android-dev\cordova-android\bin\HybridAndroidApp\cordova\node_modules\q\q.js:863:30)

          at Promise.promise.promiseDispatch (C:\Android-dev\cordova-android\bin\HybridAndroidApp\cordova\node_modules\q\q.js:796:13)

          at C:\Users\hugo\Android-dev\cordova-android\bin\HybridAndroidApp\cordova\node_modules\q\q.j s:857:14

          at runSingle (C:\Android-dev\cordova-android\bin\HybridAndroidApp\cordova\node_modules\q\q.js:137:13)

          at flush (C:\Android-dev\cordova-android\bin\HybridAndroidApp\cordova\node_modules\q\q.js:125:13)

          at nextTickCallbackWith0Args (node.js:420:9)

          at process._tickCallback (node.js:349:13)

      pluginInfo.getEditConfigs is not a function

       

      I found there is a similiar bug here with cordova-lib: https://www.mail-archive.com/issues@cordova.apache.org/msg70264.html

       

      Any ideas?

       

      Thanks.