简体   繁体   English

如何在Mac OS X上安装较旧版本的TypeScript?

[英]How does one install an older version of TypeScript on mac os x?

I am using WebStorm on a mac for development, and the latest stable release only supports 0.8.x version of TypeScript while npm installs 0.9.x, creating various conflicts with IDE. 我在Mac上使用WebStorm进行开发,而最新的稳定版本仅支持TypeScript的0.8.x版本,而npm安装0.9.x,会与IDE产生各种冲突。

Currently npm will install 0.9.x version with: 当前npm将安装0.9.x版本,其中包括:

npm install -g typescript

how can I force it to install older version of TypeScript compiler? 如何强制它安装较旧版本的TypeScript编译器?

npm install -g typescript@0.8.3

应该安装最新的0.8版本的TypeScript。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM