I got this error while I was running the ng g entity...:
Error: Schematic "feature" not found in collection "@schematics/angular".
To fix this error I ran the following command in the terminal:
ng add @ngrx/schematics

Reinstallation was a solution in my case.