Windows cmd closes after ng serve --o command

Viewed 388

After I run:

ng serve --o

Windows cmd closes and i'm not to able to press ctrl+C to kill the angular app.

2 Answers

Probably an issue in @angular/cli version 12.0.0. Try installing the previous version (https://www.npmjs.com/package/@angular/cli)

npm uninstall -g @angular/cli
npm cache verify
npm install -g @angular/cli@11.2.13

cmd window closes after running ng serve

The issue is fixed now in angular 12.0.2

Related