When you run npm install angular , AngularJS (v1.x) is installed.
That is why, when you run the command, the latest stable version of AngularJS ie v1.6.4 is installed .
Note: Angular v1 (AngularJS) is still supported . Last stable release was 3 months ago.
Angular 2 and higher versions are simply called
Angular .
Note: Angular (v2 or v4) is an
incompatible rewriting function of AngularJS (v1)
Now the question is, should you choose any of the above requirements. The steps you followed are to get AngularJS (v1).
You can take a look at
Angular Quickstart to get started with Angular2 +, which is now updated to version 4.4.5 (starting July 5th, 2017). You can take a look at
Package.json and you will notice
"dependencies": { "@angular/common": "~4.0.0", "@angular/compiler": "~4.0.0", "@angular/core": "~4.0.0", "@angular/forms": "~4.0.0", "@angular/http": "~4.0.0", "@angular/platform-browser": "~4.0.0", "@angular/platform-browser-dynamic": "~4.0.0", "@angular/router": "~4.0.0", "angular-in-memory-web-api": "~0.3.0", "systemjs": "0.19.40", "core-js": "^2.4.1", "rxjs": "5.0.1", "zone.js": "^0.8.4"
},
which should install the current stable version of Angular
angular-cli (Angular command line tool)
source share