title: Npm postinstall only on development
body: <p>I have npm module with following <code>package.json</code></p>
  <pre><code>{
    &quot;name&quot;: &quot;my-app&quot;,
    &quot;version&quot;: &quot;0.0.0&quot;,
    &quot;scripts&quot;: {
      &quot;prepublish&quot;: &quot;bower install&quot;,
      &quot;build&quot;: &quot;gulp&quot;
    },
    &quot;dependencies&quot;: {
      &quot;express&quot;: &quot;~4.0.0&quot;,
      &quot;body-parser&quot;: &quot;~1.0.1&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;gulp&quot;: &quot;~3.6.0&quot;,
      &quot;bower&quot;: &quot;~1.3.2&quot;
    }
  }
  </code></pre>
  <p>When I deploy my app to production, I don't want install <code>devDependecies</code>, so, I run <code>npm install --production</code>. But in this case, <code>prepublish</code> script is called, but it doesn't need to, because I use CDN links in production.</p>
  <p>How to call <code>postinstall</code> script only after <code>npm install</code> but not after <code>npm install --production</code>?</p>