Cov txheej txheem:

Kuv tuaj yeem qhia tau li cas version ntawm TypeScript raug teeb tsa?
Kuv tuaj yeem qhia tau li cas version ntawm TypeScript raug teeb tsa?

Video: Kuv tuaj yeem qhia tau li cas version ntawm TypeScript raug teeb tsa?

Video: Kuv tuaj yeem qhia tau li cas version ntawm TypeScript raug teeb tsa?
Video: Ntsaim vaj - Muaj poj niam lawm ua tsis tau li cas ( Official MV ) Nkauj tawm tshiab 2020 2024, Kaum ib hlis
Anonim

Mus rau: C:Program Files (x86)Microsoft SDKs TypeScript , nyob ntawd koj saib cov npe ntawm hom 0.9, 1.0 1.1. Sau tus lej siab uas koj muaj (hauv qhov no 1.1) Luam cov npe thiab khiav hauv CMD cov lus txib tsc -v, koj tau txais version.

Tib neeg kuj nug, koj tuaj yeem qhia tau li cas yog TypeScript raug teeb tsa?

Kuaj qhov ntawd tus TypeScript raug ntsia kom raug los ntawm kev ntaus ntawv tsc -v rau hauv koj lub davhlau ya nyob twg lossis hais kom ua. Koj yuav tsum saib TypeScript version luam tawm mus rau qhov screen. Rau pab rau kev sib cav uas koj tuaj yeem ntaus tsc -h lossis tsc.

Ib tug kuj yuav nug, koj yuav ua li cas xyuas yog tias angular CLI raug teeb tsa? Txhawm rau txheeb xyuas qhov version ntawm Angular CLI tau nruab rau ntawm koj lub tshuab, khiav cov lus txib ng –version raws li qhia hauv daim duab hauv qab no:

  1. Raws li koj pom tias ntawm kuv lub tshuab txhim kho, Angular cli version 1.0.
  2. Cov lus txib no yuav tshem tawm tag nrho cov teeb tsa Angular modules ntawm lub system.
  3. Koj yuav tsum khiav cov lus txib no ua tus thawj tswj hwm.

Tom qab ntawd, kuv yuav hloov TypeScript version li cas?

Txhawm rau hloov TypeScript versions, hloov qhov chaw hauv qab no:

  1. Los ntawm cov ntawv qhia zaub mov saum toj kawg nkaus, qhib Cov Cuab Yeej> Kev Xaiv> Ntawv Sau Ntawv> JavaScript / TypeScript> IntelliSense.
  2. Hloov Siv TypeScript version rau koj xav tau version.

Kuv yuav nruab ib hom ntawv li cas?

Txhawm rau nruab TypeScript, sau cov lus txib hauv qab no hauv Terminal Window

  1. $ npm nruab typescript --save-dev // As dev dependency.
  2. $ npm nruab typescript -g // Nruab raws li lub ntiaj teb module.
  3. $ npm nruab [email tiv thaiv] -g //Nruab qhov tseeb yog tias koj muaj cov ntawv qub.

Pom zoo: