{"action":"created","issue":{"url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/2709","repository_url":"https://api.github.com/repos/ionic-team/ionic-cli","labels_url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/2709/labels{/name}","comments_url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/2709/comments","events_url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/2709/events","html_url":"https://github.com/ionic-team/ionic-cli/issues/2709","id":254437976,"number":2709,"title":"Unable to add a cordova plugin from local folder","user":{"login":"kensodemann","id":1526846,"avatar_url":"https://avatars3.githubusercontent.com/u/1526846?v=4","gravatar_id":"","url":"https://api.github.com/users/kensodemann","html_url":"https://github.com/kensodemann","followers_url":"https://api.github.com/users/kensodemann/followers","following_url":"https://api.github.com/users/kensodemann/following{/other_user}","gists_url":"https://api.github.com/users/kensodemann/gists{/gist_id}","starred_url":"https://api.github.com/users/kensodemann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kensodemann/subscriptions","organizations_url":"https://api.github.com/users/kensodemann/orgs","repos_url":"https://api.github.com/users/kensodemann/repos","events_url":"https://api.github.com/users/kensodemann/events{/privacy}","received_events_url":"https://api.github.com/users/kensodemann/received_events","type":"User","site_admin":false},"labels":[{"id":680884634,"url":"https://api.github.com/repos/ionic-team/ionic-cli/labels/needs%20info","name":"needs info","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-08-31T19:09:15Z","updated_at":"2018-03-20T16:09:06Z","closed_at":"2017-08-31T19:22:17Z","author_association":"NONE","body":"_From @Khusbu on August 31, 2017 6:46_\n\n**Ionic version:**  (check one with \"x\")\r\n[ ] **1.x** (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)\r\n[ ] **2.x**\r\n[ x] **3.x**\r\n\r\n**I'm submitting a ...**  (check one with \"x\")\r\n[x ] bug report\r\n[ ] feature request\r\n[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/\r\n\r\n**Current behavior:**\r\nOn adding a cordova plugin to my app from local folder I get below error:\r\n\r\n`\r\n> cordova plugin add ../local-cordova-plugin --save\r\n✖ Running command - failed!\r\n[ERROR] An error occurred while running cordova plugin add ../local-cordova-plugin --save (exit code 1):\r\n\r\n        \r\n        Error: Failed to get absolute path to installed module\r\n\r\n`\r\n\r\n**Note**: This error occurs if I add it after I have added plugins from npm repository or adding any platform to my app. If I had it first, before adding any other plugin or platform, it gets added successfully.\r\n\r\n**Expected behavior:**\r\nI should be able to add a local cordova plugin to my ionic app at any stage.\r\n\r\n**Steps to reproduce:**\r\n\r\n`$ ionic cordova plugin add ../local-cordova-plugin` \r\n\r\nPlease note you should add the local cordova plugin after adding a platform or a plugin from npm repository to your ionic app.\r\n\r\n**Related code:**\r\n\r\n**Other information:**\r\n[Stackoverflow link for similar issue](https://stackoverflow.com/questions/43856285/failed-to-get-absolute-path-to-installed-module)  I have used flags like `--nofetch, --force, --noregistry, --searchpath` but it didn't resolve my issue. \r\n\r\n**Ionic info:** (run `ionic info` from a terminal/cmd prompt and paste output below):\r\n\r\n```\r\ncli packages: (/usr/local/lib/node_modules)\r\n\r\n    @ionic/cli-utils  : 1.9.2\r\n    ionic (Ionic CLI) : 3.9.2\r\n\r\nglobal packages:\r\n\r\n    Cordova CLI : 7.0.1 \r\n\r\nlocal packages:\r\n\r\n    @ionic/app-scripts : 2.1.3\r\n    Cordova Platforms  : android 6.2.3\r\n    Ionic Framework    : ionic-angular 3.6.0\r\n\r\nSystem:\r\n\r\n    Android SDK Tools : 26.0.2\r\n    Node              : v7.0.0\r\n    npm               : 3.10.8 \r\n    OS                : macOS Sierra\r\n```\r\n\n\n_Copied from original issue: ionic-team/ionic#12783_"},"comment":{"url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/comments/374656429","html_url":"https://github.com/ionic-team/ionic-cli/issues/2709#issuecomment-374656429","issue_url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/2709","id":374656429,"user":{"login":"dwieeb","id":236501,"avatar_url":"https://avatars3.githubusercontent.com/u/236501?v=4","gravatar_id":"","url":"https://api.github.com/users/dwieeb","html_url":"https://github.com/dwieeb","followers_url":"https://api.github.com/users/dwieeb/followers","following_url":"https://api.github.com/users/dwieeb/following{/other_user}","gists_url":"https://api.github.com/users/dwieeb/gists{/gist_id}","starred_url":"https://api.github.com/users/dwieeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwieeb/subscriptions","organizations_url":"https://api.github.com/users/dwieeb/orgs","repos_url":"https://api.github.com/users/dwieeb/repos","events_url":"https://api.github.com/users/dwieeb/events{/privacy}","received_events_url":"https://api.github.com/users/dwieeb/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T16:09:06Z","updated_at":"2018-03-20T16:09:06Z","author_association":"CONTRIBUTOR","body":"Each `ionic cordova` command has helpful documentation about what it does on top of the Cordova command it's wrapping. Just use the `--help` flag, e.g.: `ionic cordova run --help`. \r\n\r\nIf the documentation is insufficient, please file a new issue. Thanks!"}}
{"actor":{"display_login":"dwieeb"}}