由於訪問國外網絡有問題,所以使用淘寶鏡像
npm config set registry https://registry.npm.taobao.org
npm config set disturl https://npm.taobao.org/dist
npm -g install typescript
如果需要指定typescript版本,則使用@符號,如下圖
npm -g install [email protected]
由於訪問國外網絡有問題,所以使用淘寶鏡像
npm config set registry https://registry.npm.taobao.org
npm config set disturl https://npm.taobao.org/dist
npm -g install typescript
如果需要指定typescript版本,則使用@符號,如下圖
npm -g install [email protected]