Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular-cli Angular 4 Starter?

How can I get the Angular 4 starter? We have developed multiple SPAs on Angular 4 and want to stay consistent throughout. ng new angular-sample --ng4

makes angular 5 application.

 "dependencies": {
    "@angular/animations": "^5.0.0",
    "@angular/common": "^5.0.0",
    "@angular/compiler": "^5.0.0",
    "@angular/core": "^5.0.0",
    "@angular/forms": "^5.0.0",
    "@angular/http": "^5.0.0",
    "@angular/platform-browser": "^5.0.0",
    "@angular/platform-browser-dynamic": "^5.0.0",
    "@angular/router": "^5.0.0",
    "core-js": "^2.4.1",
    "rxjs": "^5.5.2",
    "zone.js": "^0.8.14"
  },
like image 217
shaikhspear Avatar asked Aug 01 '26 23:08

shaikhspear


1 Answers

you need to set your angular-cli version to 1.4.6. Follow these steps.

npm uninstall -g angular-cli npm cache clean npm install -g [email protected]

If you install angular cli recently then cli name might be "angular/cli". For that you can use following command.

npm uninstall -g angular/cli npm cache clean npm install -g [email protected]

like image 140
dats Avatar answered Aug 03 '26 18:08

dats