在离子中将角度 5 降级为 4.3.3 [重复]
Posted
技术标签:
【中文标题】在离子中将角度 5 降级为 4.3.3 [重复]【英文标题】:downgrade angular 5 to 4.3.3 in ionic [duplicate] 【发布时间】:2018-05-07 05:31:22 【问题描述】:我正在使用 Ionic 3,但我需要知道如何将角度依赖项从 5.0.0 降级到 4.3.3
"dependencies":
"@angular/common": "5.0.0",
"@angular/compiler": "5.0.0",
"@angular/compiler-cli": "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",
"@ionic-native/core": "4.3.2",
"@ionic-native/splash-screen": "4.3.2",
"@ionic-native/status-bar": "4.3.2",
"@ionic/pro": "1.0.12",
"@ionic/storage": "2.1.3",
"ionic-angular": "3.9.2",
"ionicons": "3.0.0",
"rxjs": "5.5.2",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.18"
,
【问题讨论】:
更改您刚刚列出的版本,然后运行 npm install 你的意思是我会手动编辑依赖的版本,然后运行 npm install ? @vince 是的.. 编辑 package.json。将所有 Angular 包设置为 4.3.3 .. 删除 node_modules 并运行 npm install @SurajRao 谢谢。 【参考方案1】:按照如下修改package.json
"dependencies":
"@angular/common": "4.4.3",
"@angular/compiler": "4.4.3",
"@angular/compiler-cli": "4.4.3",
"@angular/core": "4.4.3",
"@angular/forms": "4.4.3",
"@angular/http": "4.4.3",
"@angular/platform-browser": "4.4.3",
"@angular/platform-browser-dynamic": "4.4.3",
"@ionic-native/splash-screen": "3.12.1",
"@ionic-native/status-bar": "3.12.1",
"@ionic/storage": "2.0.1",
"ionic-angular": "3.7.0",
"ionic-plugin-keyboard": "^2.2.1",
"ionicons": "3.0.0",
"rxjs": "5.4.3",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.17",
// ...
,
"devDependencies":
"@ionic/app-scripts": "3.0.0",
"typescript": "2.3.4"
,
然后只是(不要忘记从您的项目目录中删除 node_module
文件夹)
npm install
完成:)
【讨论】:
是的,您的回答很有帮助。谢谢。 在您的问题上用right tick
接受答案:) @vince
@KishanOza 我已经从你的答案中删除了一些与 Angular 无关的依赖项
好吧,我没注意到兄弟@sebaferreras以上是关于在离子中将角度 5 降级为 4.3.3 [重复]的主要内容,如果未能解决你的问题,请参考以下文章
FormControl debounceTime 在角度 5(离子 3)中不可用