title: npm installs packages and dependencies in the project root directory
body: <p>I switched from Windows to Mac. When I'm trying to install npm modules, the packages and their dependencies are created inside the project root directory.</p>
  
  <p>On Windows the module was installing into ./node_modules, with all dependencies inside module folder.</p>
  
  <p>Is there something I need to configure to make it work as before?</p>
  
  <p><strong>edit</strong></p>
  
  <p>I have both, node_modules folder and package.json in my project dir:</p>
  
  <pre><code>{
    "name": "react",
    "version": "0.0.1",
    "private": true,
    "dependencies": {
      "chokidar": "^1.0.3"
    }
  }
  </code></pre>
  
  <p>And still, chokidar package and its dependencies are in the project root.</p>