Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the reason npm ERR! write after end, when I create an Angular 4 app?

Tags:

angular

I am getting error when i create a Angular 4 app in CLI mode.

I am getting this error

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

Please give me a proper suggestion so that i can solve this problem.

My Angular configuration

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


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
like image 348
Anjan Biswas Avatar asked Dec 17 '22 23:12

Anjan Biswas


1 Answers

npm install -g [email protected]

After running this command my problem is solved.

like image 172
Anjan Biswas Avatar answered Dec 28 '22 09:12

Anjan Biswas