title: How do you prevent install of "devDependencies" NPM modules for Node.js (package.json)?
body: <p>I have this in my package.json file (shortened version):</p>
  
  <pre><code>{
    "name": "a-module",
    "version": "0.0.1",
    "dependencies": {
      "coffee-script":      "&gt;= 1.1.3"
    },
    "devDependencies": {
      "stylus":             "&gt;= 0.17.0"
    }
  }
  </code></pre>
  
  <p>I am using NPM version 1.1.1 on Mac 10.6.8.</p>
  
  <p>When I run the following command from the project root, it installs both the <code>dependencies</code> <em>and</em> <code>devDependencies</code>:</p>
  
  <pre><code>npm install
  </code></pre>
  
  <p>I was under the impression that this command installed the <code>devDependencies</code>:</p>
  
  <pre><code>npm install --dev
  </code></pre>
  
  <p>How do I make it so <code>npm install</code> only installs <code>dependencies</code> (so production environment only gets those modules), while something like <code>npm install --dev</code> installs both <code>dependencies</code> and <code>devDependencies</code>?</p>