title: How to install Angular CLI locally (without the -g flag)
body: <p>I've just started working with Angular and with <strong>Angular-CLI</strong> and I've seen that, according to the documentation, I need to install <code>$ npm install -g @angular/cli</code> with the <code>-g</code> (global) flag.</p>
  
  <p>However I would like to have Angular-CLI installed locally with the rest of my <strong>node_modules</strong> packages. This way, when I've download my project from <strong>git</strong>, I could simply run <code>$ npm install</code> (for installing all the dependencies in my <strong>package.json</strong>). </p>
  
  <p>I try to create a new project by running <code>$ npm init</code> and then run <code>$ npm i @angular/cli -D</code> (<code>-D</code> is the same as <code>--save-dev</code>). But then when I run <code>$ ng new project-name</code> a new sub directory was created with a separate <strong>node_modules</strong> directory.</p>