[ https://issues.apache.org/jira/browse/CB-12967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16067128#comment-16067128 ]
Jan Piotrowski commented on CB-12967: ------------------------------------- `cordova platform list` is also a bit confused: {code} PS C:\Users\Jan\Documents\foo> cordova platform list {} Installed platforms: .git android 6.3.0-dev ios 4.3.1 Available platforms: blackberry10 ~3.8.0 (deprecated) browser ~4.1.0 webos ~3.7.0 windows ~5.0.0 {code} > Having `/platforms` as a Git repository breaks `cordova plugin` commands > ------------------------------------------------------------------------ > > Key: CB-12967 > URL: https://issues.apache.org/jira/browse/CB-12967 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-cli > Reporter: Jan Piotrowski > Priority: Minor > > I tried having my `/platforms` and as a (local) Git repository to be able to > understand the exact changes done when adding plugins, running hooks and so > on. Unfortunately, this seems to break the `cordova plugin` commands: > {code} > PS C:\Users\Jan\Documents\foo> cordova plugin add cordova-plugin-inappbrowser > --save > Installing "cordova-plugin-inappbrowser" for .git > Failed to install 'cordova-plugin-inappbrowser': Error: Your .git platform > does not have Api.js > at Object.getPlatformApiFunction > (C:\nvm\v7.9.0\node_modules\cordova\node_modules\cordova-lib\src\cordova\util.js:489:19) > at Object.getPlatformApi > (C:\nvm\v7.9.0\node_modules\cordova\node_modules\cordova-lib\src\platforms\platforms.js:56:25) > at handleInstall > (C:\nvm\v7.9.0\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:618:29) > at > C:\nvm\v7.9.0\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:379:28 > at _fulfilled > (C:\nvm\v7.9.0\node_modules\cordova\node_modules\q\q.js:787:54) > at self.promiseDispatch.done > (C:\nvm\v7.9.0\node_modules\cordova\node_modules\q\q.js:816:30) > at Promise.promise.promiseDispatch > (C:\nvm\v7.9.0\node_modules\cordova\node_modules\q\q.js:749:13) > at C:\nvm\v7.9.0\node_modules\cordova\node_modules\q\q.js:509:49 > at flush (C:\nvm\v7.9.0\node_modules\cordova\node_modules\q\q.js:108:17) > at _combinedTickCallback (internal/process/next_tick.js:73:7) > Error: Your .git platform does not have Api.js > {code} > {code} > PS C:\Users\Jan\Documents\foo> cordova plugin remove > cordova-plugin-inappbrowser > Error: .git not supported. > {code} > Would it make sense to add a "skip" for the `.git` folder in there somehow? -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org