安装特定版本的 ng cli [英] Install specific version of ng cli

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

问题描述

我使用 angular 2.4.9 进行应用程序开发,因此我需要使用特定版本的 ng cli 而不是最新版本.

I'm using angular 2.4.9 for my application development so I need to use specific version of ng cli instead of the latest one.

我知道下面的命令将安装最新版本的 ng cli

I know the below command will install latest version of ng cli

npm install -g @angular/cli

但是我如何安装特定版本的 ng cli?

But how can I install specific version of ng cli?

推荐答案

此命令将安装 1.0.0 版本:

This command would install the 1.0.0 version:

npm install -g @angular/cli@1.0.0

您可以使用以下命令查看可用版本:

You can see the available versions with the following command:

npm view @angular/cli

注意:您还可以安装最新的可用版本:

NB: You can also install the latest available version:

npm install @angular/cli@latest

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

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