如何降级StackBlitz中npm软件包的依赖关系? [英] How to downgrade the dependencies for npm packages in StackBlitz?

查看:154
本文介绍了如何降级StackBlitz中npm软件包的依赖关系?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为StackBlitz上的演示建议创建一个应用程序,并且必须使用Angular 5.2.x,因为我的应用程序仍在使用5.2.x.尝试安装依赖项时,我无法从v6降级到v5.2.

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.

我实际上需要"@angular/common": "^5.2.10", "rxjs": "^5.5.10", "@angular/http": "^5.2.10"等.但这只是迫使我安装v6.

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?

一直在检查Stackblitz的文档,但没有发现有关这种情况的信息.

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

推荐答案

将鼠标悬停在包上时,通过单击垃圾箱来删除现有包: 在显示enter package name的地方键入@angular/common@5.2.10并单击Enter.

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.

该软件包将被安装.重复rxjs@5.5.10@http/common@5.2.10

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

这篇关于如何降级StackBlitz中npm软件包的依赖关系?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆