I getting this error: "You have to be inside an angular-cli project in order to use the build command" after creating a new angular2 app from the CLI. I'm inside the project dir and I don't understand the meaning of the error.
Asked
Active
Viewed 2,486 times
1 Answers
0
You need to cd
into that newly created directory.
cd DIRECTORY_NAME_HERE
Then you can do:
ng build
ng serve
// etc

Mark Pieszak - Trilon.io
- 61,391
- 14
- 82
- 96
-
well, that's what I did. Anyway, now it seems to be working but I don't know why. – Ace Jul 12 '16 at 15:53
-
You might of just somehow changed directory, the cli will prompt that when it's the case. Strange, at least it worked :) – Mark Pieszak - Trilon.io Jul 12 '16 at 16:23