jaesung2061 / anvel

Angular 2 Laravel Starter Kit
94 stars 25 forks source link

You have to be inside an angular-cli project in order to use the build command. #29

Closed MohanadI closed 7 years ago

MohanadI commented 7 years ago

Hello ,

after I type " ng build --watch " this error appears !

any suggestions .

Thank you .

jaesung2061 commented 7 years ago

Are you in the root project directory? Not the angular directory, but the Lumen root directory.

serkandyck commented 7 years ago

if you use ng build command root project directory in direct you get error You have to be inside an angular-cli project in order to use the build command. But if u run npm run build Everything OK.

jaesung2061 commented 7 years ago

Apologies. I had the wrong npm package for Angular CLI.

It is npm install -g @angular/cli, not npm install -g angular-cli

MohanadI commented 7 years ago

Thanks now its working perfectly .