1、根目录下执行ng命令
Microsoft Windows [版本 10.0.16299.492]
(c) 2017 Microsoft Corporation。保留所有权利。C:\Users\dqgzs>ng
Available Commands:
For more detailed help run "ng [command name] --help"
C:\Users\dqgzs>
2、项目下执行ng命令
Microsoft Windows [版本 10.0.16299.492]
(c) 2017 Microsoft Corporation。保留所有权利。C:\Users\dqgzs>cd D:\workspace-sts\dqgy\manage
C:\Users\dqgzs>D:
D:\workspace-sts\dqgy\manage>ng generate module app-routing --flat --module=app
Your global Angular CLI version (6.0.8) is greater than your local
version (1.6.7). The local Angular CLI version is used.
To disable this warning use "ng config -g cli.warnings.versionMismatch false".
D:\workspace-sts\dqgy\manage>ng
Your global Angular CLI version (6.0.8) is greater than your local
version (1.6.7). The local Angular CLI version is used.
To disable this warning use "ng config -g cli.warnings.versionMismatch false".
ng build <options...>
ng completion <options...>
ng doc <keyword> <options...>
ng e2e <options...>
ng eject <options...>
ng generate <schematic> <options...>
ng get <options...>
ng help <command-name (Default: all)> <options...>
ng lint <options...>
ng new <options...>
ng serve <options...>
ng set <options...>
ng test <options...>
ng version
ng xi18n <options...>
D:\workspace-sts\dqgy\manage>
文章来源: ng命令