Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An ejected project cannot use the build command anymore

I am new in Angular. I accidentally ejected my project using command-line, i don't remember which command i used. but when i try to run command

ng serve --open

it throws me an error of

An ejected project cannot use the build command anymore.

I also re-installed angular-cli as said in this Stackoverflow Question but no use.

Can anyone help me with this?

like image 663
Shweta Avatar asked Mar 29 '17 10:03

Shweta


1 Answers

open the angular-cli.json, you should see this at the top

"project": {
   "name": "proj-name",
   "ejected": true,
}

remove the ejected part and it should work

like image 183
phacic Avatar answered Nov 13 '22 08:11

phacic