title: Bower Loading devDependencies in Production?
body: <h2>Short Version</h2>
  
  <p>My project requires angular-leaflet, and angular-leaflet has a <a href="https://github.com/tombatossals/angular-leaflet-directive/blob/master/bower.json" rel="noreferrer">long list of devDependencies</a>, including jQuery 2. I don't want jQuery 2--I want jQuery 1.x. How can I get bower to ignore the devDependencies of angular-leaflet and let me use jQuery 1?</p>
  
  <h2>Long Version</h2>
  
  <p>I am using bower 1.2.8. Here is a minimal bower.json that reproduces the problem for me:</p>
  
  <pre><code>{
    "name": "bower-test",
    "dependencies": {
      "jquery": "1.x",
      "angular": "1.2.x",
      "angular-leaflet": "0.7.x"
    }
  }
  </code></pre>
  
  <p>Running <code>bower install</code> results in the following error:</p>
  
  <pre><code>Unable to find a suitable version for jquery, please choose one:
      1) jquery#1.x which resolved to 1.11.0 and has bower-test as dependants
      2) jquery#2.1.0 which resolved to 2.1.0 and has angular-leaflet#0.7.5 as dependants
      3) jquery#&gt;= 1.9.0 which resolved to 2.1.0 and has bootstrap#3.0.3 as dependants
  </code></pre>
  
  <p>At the very least, I expected <code>bower install --production</code> to ignore devDependencies in angular-leaflet. But here's the result (identical to above):</p>
  
  <pre><code>Unable to find a suitable version for jquery, please choose one:
      1) jquery#1.x which resolved to 1.11.0 and has bower-test as dependants
      2) jquery#2.1.0 which resolved to 2.1.0 and has angular-leaflet#0.7.5 as dependants
      3) jquery#&gt;= 1.9.0 which resolved to 2.1.0 and has bootstrap#3.0.3 as dependants
  </code></pre>
  
  <p>Why is bower not ignoring the devDependencies of angular-leaflet? Is there a way to make it do so?</p>