Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Angular-CLI 'ng build' shows "Killed"?

When I added a new module, ng build process just getting killed.

enter image description here

like image 279
Urukhay Avatar asked Aug 01 '17 04:08

Urukhay


People also ask

What happens on NG build in Angular?

ng build command compiles the Angular app into an output directory named dist/ at the given output path. This command must be executed from within the working directory. The application builder in Angular uses the webpack build tool, with configuration options specified in the workspace configuration file (angular.

What happens after ng build?

ng buildlink. Compiles an Angular application or library into an output directory named dist/ at the given output path.

What happens when Ng serve command is executed?

ng serve command builds and serve the application. It rebuilds the application if changes occur. Here project is the name of the application as defined in angular.

How do you solve ng error?

To solve the error "ng: command not found", install the angular cli package globally by running npm install -g @angular/cli@latest and restart your terminal. If the command fails, run it with sudo and make sure the correct PATH is set in your system's environment variable.


1 Answers

as from this comment here:

I think this is a memory issue. Linux will kill processes when it's low on memory. See http://stackoverflow.com/questions/30747314/webpack-uglify-plugin-returns-killed-on-ubuntu

like image 101
angularrocks.com Avatar answered Sep 21 '22 13:09

angularrocks.com