How to install the version of Angular number 5?

0

How can I create a project using the latest versions of angular in this case the number 5 ( angular 5 ).

    
asked by Vallin Plasencia 07.10.2017 в 22:37
source

2 answers

1

You need to install the angle cli in version 1.7

npm install -g @angular/[email protected]

Then you create your project: ng new nombreProyecto

    
answered by 07.11.2018 в 18:12
0

To create a project with Angular 5 you need the following requirements:

  

Install Angular CLI 1.5.0 on your machine.

npm install -g @angular/cli
  

Create an Angular project.

ng new mi-proyecto-angular
  

Install TypeScript 2.4.2 in your project.

npm install typescript@'>=2.4.2 <2.5.0'
  

Start Angular project in development mode.

ng serve --aot
  

Distribute Angular project in production mode.

ng build --prod --build-optimizer
    
answered by 02.11.2017 в 17:59