title: What is the reason npm ERR! write after end, when I create an Angular 4 app?
body: <p>I am getting error when i create a Angular 4 app in CLI mode.</p>
  
  <h2>I am getting this error</h2>
  
  <pre><code>anjan@anjan-HP-Laptop-15-bs0xx:~/Desktop/angular$ ng new a4app
  npm ERR! write after end  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /home/anjan/.npm/_logs/2018-04-13T04_48_09_522Z-debug.log
  </code></pre>
  
  <p>Please give me a proper suggestion so that i can solve this problem. </p>
  
  <h2>My Angular configuration</h2>
  
  <pre><code>     _                      _                 ____ _     ___
      / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
     / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
    / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
   /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                  |___/
  
  
  Angular CLI: 6.0.0-rc.4
  Node: 8.11.1
  OS: linux x64
  Angular: 
  ... 
  
  Package                      Version
  ------------------------------------------------------
  @angular-devkit/architect    0.5.6
  @angular-devkit/core         0.5.6
  @angular-devkit/schematics   0.5.6
  @ngtools/json-schema         1.1.0
  @schematics/angular          0.5.6
  @schematics/update           0.5.6
  rxjs                         6.0.0-turbo-rc.4
  typescript                   2.7.2
  </code></pre>