https://www.notion.so/CLI-fffc6950cd084383b7521964980b518b
1
2
3
4
5
6
7
ng generate component|directive|pipe|service|class|guard|interface|enum|module --module=app
ng g directive ./src/app/directives/your-directive --module=shared
ng test --include path/to/your-spec-file
ng test --include src/**/*.spec.ts
ng test your-module --code-coverage
Install Error
1
2
3
4
5
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module '/usr/lib/node_modules/@angular/cli/bin/postinstall/script.js'
1
sudo npm install -g @angular/cli --unsafe-perm=true --allow-root