检查已安装的 angular-cli 版本? [英] Checking version of angular-cli that's installed?

查看:29
本文介绍了检查已安装的 angular-cli 版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法检查在我的机器上全局安装的 angular-cli 的特定版本?我在 Windows 环境中.*npm -v* 和 *node -v* 分别只给了我 npm 和 node 的版本,我似乎找不到任何带有 ng 的命令.

Is there a way to check the specific version of angular-cli that's installed globally on my machine? I'm in a Windows environment. *npm -v* and *node -v* only gives me the version of npm and node respectively, and I can't seem to find any commands with ng.

我正在尝试运行一个我正在处理的项目,它使用 npm 在旧版本的 angular-cli 上运行.但是,在安装其他演示项目后,我的主项目在没有卸载并重新安装特定版本的 angular-cli 的情况下不再工作.

I'm trying to run a project that I'm working on, and it ran on an older version of angular-cli using npm. However, after installing other demo projects, my main project doesn't work anymore without uninstalling and reinstalling angular-cli at the specific version.

推荐答案

angular cli 可以在使用版本标志运行时报告其版本

angular cli can report its version when you run it with the version flag

ng --version

这篇关于检查已安装的 angular-cli 版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆