Answers.Body: <p>After discussing it with the team we worked out that deleting the plugin directory from the <code>/vendors</code> folder and rerunning <code>composer install</code> resolved it. Not sure why though...</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-03T12:37:53.893Z
Answers.LastActivityDate: 2018-12-03T12:37:53.893Z
Answers.UserDisplayName: Jay
Body: <p>I am working on a project with multiple developers and another member of the team is getting on with a Plugin to assist with some CraftCommerce integrations.</p>
  
  <p>As it's not a publicly available plugin, it's being stored locally in our repo.</p>
  
  <p>However, whenever I run any Composer command on my local machine I get the following error:</p>
  
  <pre><code>[RuntimeException]
    Package &lt;agency&gt;/&lt;plugin&gt; cannot install to
    "/Users/jaycollett/Development/project/build/custom/&lt;plugin&gt;"
    inside its source at "/Users/jaycollett/Development/project/build/
    custom/&lt;plugin&gt;"
  </code></pre>
  
  <p>We have found this response from Andrew Welch, but it can't be this because our Composer.json repositories section is as follows:</p>
  
  <pre><code>  "repositories": [
      {
        "type": "composer",
        "url": "https://asset-packagist.org"
      },
      {
        "type": "path",
        "url": "./custom/&lt;plugin&gt;"
      }
    ]
  </code></pre>
  
Tags: <plugin-development><craft3><composer>
Title: Error running any Composer command
ThreadText: # Error running any Composer command
  
  (Asked by: username_0 on 2018-12-03)
  
  I am working on a project with multiple developers and another member of the team is getting on with a Plugin to assist with some CraftCommerce integrations.
  
  As it's not a publicly available plugin, it's being stored locally in our repo.
  
  However, whenever I run any Composer command on my local machine I get the following error:
  
  ```
  [RuntimeException]
    Package <agency>/<plugin> cannot install to
    "/Users/jaycollett/Development/project/build/custom/<plugin>"
    inside its source at "/Users/jaycollett/Development/project/build/
    custom/<plugin>"
  
  ```
  
  We have found this response from Andrew Welch, but it can't be this because our Composer.json repositories section is as follows:
  
  ```
    "repositories": [
      {
        "type": "composer",
        "url": "https://asset-packagist.org"
      },
      {
        "type": "path",
        "url": "./custom/<plugin>"
      }
    ]
  
  ```
  
  **Tags:** plugin-development, craft3, composer
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-12-03. Score: 1 | Accepted answer
  
  After discussing it with the team we worked out that deleting the plugin directory from the `/vendors` folder and rerunning `composer install` resolved it. Not sure why though...
  
  
  ---
  
  