How to check Angular2 version with typescript

后端 未结 4 1753
礼貌的吻别
礼貌的吻别 2020-12-15 04:33

I have written a simple app with angular2@2.0.0-alpha.11, and it works great. Now that I am testing it with the latest version of the alpha and beta avaible on npm, and I ke

4条回答
  •  悲哀的现实
    2020-12-15 04:53

    New answer since accepted one no longer the case on stable angular releases, easiest way to check angular version is to do so with npm list command at project root:

    npm list  @angular/core
    

    Just in case you can check following as well, versions should match:

    npm list @angular/common
    
    npm list @angular/compiler
    

提交回复
热议问题