如何更新角度材料 [英] How to update angular material

查看:28
本文介绍了如何更新角度材料的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将项目中的角度材质更新到最新版本的最佳方法是什么material@2.0.0-alpha.8-3?

What is the best way to update angular material in a project to latest version material@2.0.0-alpha.8-3 ?

我试过了:

npm install --save @angular/material @angular/cdk

推荐答案

您需要使用 npm update 命令.一个例子看起来像这样.

You'll want to use the npm update command. An example would look like this.

npm update @angular/material @angular/cdk

这将安装最新的稳定版本.如果您想针对特定版本,则必须通过在@ 符号后添加版本来指定它.

This will install the latest stable version. If you would like to target a specific version, you would have to specify it by adding the version to the end after an @ symbol.

此外,您可以使用

npm outdated

这是关于 npm 更新的文档.

Here's the documentation on npm update.

https://docs.npmjs.com/cli/update

这篇关于如何更新角度材料的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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