Search code examples
linuxangularwebpackangular-cliwebpack-2

Angular-CLI freezes on bulding


I moved to angular-cli and have a problem during production deployment. On local PC with win10 it's all ok, but when I try to build on centos server building freezes on 10%.

OS: CentOS 6.6

ng - v:

@angular/cli: 1.0.0
node: 6.10.1
os: linux x64
@angular/common: 4.0.1
@angular/compiler: 4.0.1
@angular/core: 4.0.1
@angular/forms: 4.0.1
@angular/http: 4.0.1
@angular/platform-browser: 4.0.1
@angular/platform-browser-dynamic: 4.0.1
@angular/router: 4.0.1
@angular/cli: 1.0.0
@angular/compiler-cli: 4.0.1

Then:

cd ~
ng new ngtest
cd ngtest
ng build

And I have this out in during 15 minutes without any changes.

 10% building modules 3/3 modules 0 active

Htop shows 0% of processor. And console has no reaction on Ctrl+C. Only kill -9 from other terminal can stop this.

Can someone tell me what is wrong in my confiruration? Thanks!


Solution

    1. Try to reinstall @angular/cli
    2. Try to reinstall nodejs and npm
    3. Try to update all soft with yum update
    4. Try to restart the server