Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

angular-cli ng serve : Error: No errors

Tags:

angular-cli

I just tried to create a new project with angular-cli, then running the server but it halts with a fun message : Error: No errors .

I updated it this way (hoping it helps) : npm uninstall -g angular-cli ; npm cache clean ; npm install -g angular-cli@latest

But it is same issue. See all messages here : http://pastebin.com/AhbdHRR7

Fortunalty, my other projects are still working.

But what happens for a new one ?

JPM

node -v ==> v6.9.4
npm -v ==> 4.1.2
ng version ==> angular-cli: 1.0.0-beta.26
like image 398
JPMous Avatar asked Jan 28 '17 13:01

JPMous


People also ask

What does ng serve mean?

ng serve — This command builds, deploy, serves and every time watches your code changes. if find any change in code it builds and serves that code automatically.

What happens when Ng serve runs?

ng serve is a great command to use when developing your application locally. It starts up a local development server, which will serve your application while you are developing it. It is not meant to be used for a production environment.


1 Answers

According to this bug report you need to install an extra dependency.

npm install [email protected] --save-dev

Which made it work for me.

like image 142
KIC Avatar answered Sep 28 '22 08:09

KIC