title: Where is 'NODE_ENV' being set to 'production'?
body: <p>I just tried to run <code>npm install</code> to install some packages newly added as dev dependencies to <code>package.json</code>. To my surprise I couldn't get npm to install any of the new dev dependencies. After digging around I realised that the NODE_ENV environmental variable is set to <code>production</code>. This appears to be set as default when I open a new shell (I can see this using <code>printenv</code>), and it isn't being done in my <code>~/.bash_profile</code>. Inside <code>~/.npmrc</code> only contains commented lines, so <strong>where might it be being set?</strong> </p>
  
  <p>EDIT:</p>
  
  <p>I'm on OSX, and there is nothing wrong with the <code>package.json</code>. I can install dev dependencies using <code>NODE_ENV=development npm install</code>.</p>
  
  <p>It's not being set in:</p>
  
  <pre><code>~/.bashrc
  ~/.bash_profile
  ~/.npmrc
  /etc/profile.d/*
  </code></pre>