-1

I am trying to install Angular 4, but by default angular version ~7.1.0 is installing. I do not require angular 7.

**package.json**

http://myjson.com/1dyoyq

Gonçalo Peres
  • 11,752
  • 3
  • 54
  • 83
Raman
  • 353
  • 1
  • 5
  • 13
  • Possible duplicate of [install a previous version of a package](https://stackoverflow.com/questions/15890958/install-a-previous-version-of-a-package) – Lazar Ljubenović Dec 03 '18 at 07:10
  • can you post the content of your `package.json` (or at least the parts concerning angular) If you want to install angular from scratch you'll have to include the version number in your npm install `npm install @angular/[the package]@version` – Arikael Dec 03 '18 at 07:11
  • support for angular 4 is ended. Better to go with the current version. – Jai Dec 03 '18 at 07:21
  • hi @Arikael, I want to install angular 4, so should be the command like this npm install -g @angular/cli@4.0.0 – Raman Dec 03 '18 at 07:32
  • @Raman Have a look at Lazars link. your question really seems to be a duplicate of that question – Arikael Dec 03 '18 at 07:34

1 Answers1

2

Try to change your package.json file to https://api.myjson.com/bins/1eomlu and then do an npm install.

In case you want to upgrade your angular version there is an online app that can help you https://angular-update-guide.firebaseapp.com/. However this will not work for downgrading the version.

AdelaM
  • 78
  • 7