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

查看:376
本文介绍了检查已安装的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.

推荐答案

当您使用版本标记运行cli时,角度cli可以报告其版本

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

ng --version

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

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