如何更新棱角材料 [英] How to update angular material
本文介绍了如何更新棱角材料的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
将项目中的角形材料更新到最新版本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.
此外,您可以使用以下方法检查包是否过时
Additionally, you can check for outdated packages with
npm outdated
这是有关npm更新的文档.
Here's the documentation on npm update.
https://docs.npmjs.com/cli/update
这篇关于如何更新棱角材料的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文