How to install Angular-CLI with Angular v4.x

前端 未结 6 743
后悔当初
后悔当初 2020-12-06 07:31

I\'ve installed Angular-CLI using this command

npm install -g @angular/cli

but I\'ve realized that it has installed Angular v5.1.3 but I ne

6条回答
  •  悲&欢浪女
    2020-12-06 08:03

    you can use

     npm i @angular/cli@1.4 -g
    

    if you want package JSON file with the versions lower than 5.

    Starting with v1.5 of the Angular CLI, we have added support for Angular v5.0.0 and will generate v5 projects by default. see link

提交回复
热议问题