How to install Angular-CLI with Angular v4.x

前端 未结 6 738
后悔当初
后悔当初 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:00

    Using npm install -g @angular/cli you will install the lastest stable version of the @angular/cli. So once you create an angular project using the cli there will be a package.json file, to specify the version of angular to use for the project change the version you would like to use in the package.json file. Then run npm install.

提交回复
热议问题