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.
To downgrade an npm package, run the npm install <package>@<version> command. You need to provide the version you want to install with the @<version> syntax.
Under the "Files" tree is a "Dependencies" section. You can add your dependencies there. If you just want the latest version you can just use the package name (ex: ngx-bootstrap ) or you can target a specific version (ex: ngx-bootstrap@5.3.0 ).
You can update the version manually by installing core-js@2.5.4 .
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With