7

I'm trying to create an app for demo propose on StackBlitz and must use Angular 5.2.x because my app is still using 5.2.x. I just can't downgrade from v6 to v5.2 when I try to install the dependencies.

I actually need e.g. "@angular/common": "^5.2.10", "rxjs": "^5.5.10", "@angular/http": "^5.2.10" etc. But it just force me to install the v6.

Is there a possibilities to avoid this and install the needed versions or there is no way?

Have been checking the doc for Stackblitz, but didn't find something talking about such case.

k.vincent
  • 3,743
  • 8
  • 37
  • 74
  • If you go to dependencies, where it says 'enter package name' and type @angular/common@5.2.10 or rxjs@5.5.10 and hit enter it should work – kboul Aug 01 '18 at 12:18
  • Yes, true. My bad. Forgot and was trying @http/common 5.2.10 which will never works. – k.vincent Aug 01 '18 at 12:23

2 Answers2

15

Delete the existing package by clicking the trash can when hovering over the package: Where it says enter package name type @angular/common@5.2.10 and click enter.

The package will be installed. Repeat for rxjs@5.5.10 and @http/common@5.2.10

Teddy Sterne
  • 13,774
  • 2
  • 46
  • 51
1

I thinks the best way is to generate an angular project with the version you want and host it at github then browser the project online at StackBlitz ,It 's look like import an angular project.

read more about this Run Angular CLI repos directly in your browser

Muhammed Albarmavi
  • 23,240
  • 8
  • 66
  • 91