Schematic "library" not found in collection "@schematics/angular"
npm i -g @schematics/angular
updates you to the latest version of the schematic. Also important to update your angular cli:
npm i -g @angular/cli
I got this error when I tried to generate a service myService
:
ng generate myService
This fixed the problem:
ng generate service myService
Why can't someone make a UNIX shell that does what I want, not what I type? :-)