How to install an older version of Angular?

I need to install Angular 2, but when I run $ ng new myApp, the version will be 4. I searched a lot, but could not find a way to install only version 2.

Does anyone know how to do this?

Edit command: ng new MYAPP --ng4=falseThis does not work. enter image description here

+2
source share
2 answers

You should use angular 4. it is in version for version now and from beta.

Check out the options ng new: https://github.com/angular/angular-cli/wiki/new

If you are in the angular cli version earlier than 1.0.0 , use the ng new myApp --ng4=falsedefault --ng4=false.

1.0.0 angular 2 . 1.0.0 . 1.0.0 , angular 4 . angular package.json .

0

Angular 4 - , . Angular 4 Angular 2.

- , , () , , - .

, , :

( ) , CLI Angular, CLI (, - package.json Angular CLI. CLI , ).

- package.json , package.json ( CLI Angular). , , , Angular cli .

, , / .json, , . , , .

0

Source: https://habr.com/ru/post/1674539/


All Articles