Reputation: 124
I'm referenceing https://www.sitepoint.com/ultimate-angular-cli-reference/, which says, To add a class called 'UserProfile', run
:
$ ng generate class user-profile
When I run this command, I get
installing class
Unable to find any apps in `angular-cli.json`
Upvotes: 0
Views: 774
Reputation: 28309
Based on this source code you got that error because your .angular-cli.json
does not containg apps
field. Just generate a new sample-app
and compare its.angular-cli.json
with your one.
Upvotes: 1