如何使用 npm 将 TypeScript 更新到最新版本? [英] How to update TypeScript to latest version with npm?
本文介绍了如何使用 npm 将 TypeScript 更新到最新版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
目前我的机器上安装了 TypeScript 1.0.3.0 版本.
我想将其更新到最新版本,即 2.0.
Currently I have TypeScript 1.0.3.0 version installed on my machine.
I want to update it to latest one i.e. 2.0.
如何使用 npm 做到这一点?
How to do this with npm?
推荐答案
尝试 npm install -g typescript@latest
.您也可以使用 npm update
代替 install,而无需使用最新的修饰符.
Try npm install -g typescript@latest
. You can also use npm update
instead of install, without the latest modifier.
这篇关于如何使用 npm 将 TypeScript 更新到最新版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文