You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jan Piotrowski (JIRA)" <ji...@apache.org> on 2017/06/28 19:59:00 UTC

[jira] [Created] (CB-12967) Having `/platforms` as a Git repository breaks `cordova plugin` commands

Jan Piotrowski created CB-12967:
-----------------------------------

             Summary: 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-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org