- Angular CLI 教程
- Angular CLI - 主页
- Angular CLI - 概述
- Angular CLI - 环境设置
- Angular CLI 命令
- Angular CLI - ng 版本
- Angular CLI - ng 新
- Angular CLI - ng 帮助
- Angular CLI - ng 生成
- Angular CLI - ng 构建
- Angular CLI - ng run
- Angular CLI - ng 服务
- Angular CLI - ng lint
- Angular CLI - ng 测试
- Angular CLI - ng e2e
- Angular CLI - ng add
- Angular CLI - ng 分析
- Angular CLI - ng 配置
- Angular CLI - ng 文档
- Angular CLI - ng 更新
- Angular CLI - ng xi18n
- Angular CLI - 代码覆盖率
- Angular CLI 有用资源
- Angular CLI - 快速指南
- Angular CLI - 有用的资源
- Angular CLI - 讨论
Angular CLI - ng version 命令
本章解释了 ng version 命令的语法、选项以及示例。
句法
ng version 命令的语法如下 -
ng version [options] ng v [options]
ng version 命令显示已安装的 Angular CLI 版本。
选项
选项是可选参数。
先生。 | 选项和语法 | 描述 |
---|---|---|
1 | --help=true|false|json|JSON | 在控制台中显示此命令的帮助消息。默认值: false |
例子
下面给出了 ng version 命令的示例 -
\>Node ng version _ _ ____ _ ___ / \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _| / ? \ | '_ \ / _` | | | | |/ _` | '__| | | | | | | / ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | | /_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___| |___/ Angular CLI: 9.1.0 Node: 12.16.1 OS: win32 x64 Angular: ... Ivy Workspace: Package Version ------------------------------------------------------ @angular-devkit/architect 0.901.0 @angular-devkit/core 9.1.0 @angular-devkit/schematics 9.1.0 @schematics/angular 9.1.0 @schematics/update 0.901.0 rxjs 6.5.4