Tejas Shede
Tejas Shede

Reputation: 23

The add command requires to be run in an Angular project

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

Answers (1)

user6749601
user6749601

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

Related Questions