Reputation: 23
While adding a component in project getting below error.
The add command requires to be run in an Angular project, but a project definition could not be found
Upvotes: 0
Views: 248
Reputation:
You have to create a project first.
ng new myprojectname
After having done this, you can go into the project folder:
cd myprojectname
And then/there you can do something with add
.
Upvotes: 1