I get the error "The NPM script 'start' exited without indicating that the Angular CLI was listening for requests. The error output was: Unknown option: '--extract-css'"
I have a project that I have not worked in a while. It is based on a visual studio angular template. When starting the project I get the error:
An unhandled exception occurred while processing the request. AggregateException: One or more errors occurred. (One or more errors occurred. (The NPM script 'start' exited without indicating that the Angular CLI was listening for requests. The error output was: Unknown option: '--extract-css'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start:
ng serve --extract-css "--port" "54197"
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:
)) System.Threading.Tasks.Task.GetResultCore(bool waitCompletionNotification)
InvalidOperationException: The NPM script 'start' exited without indicating that the Angular CLI was listening for requests. The error output was: Unknown option: '--extract-css'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start:
ng serve --extract-css "--port" "54197"
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:
Microsoft.AspNetCore.SpaServices.AngularCli.AngularCliMiddleware+d__3.MoveNext()
I would like to be able to run the angular template project from visual studio. It runs fine when running through angular cli.