在离子中降低角度5至4.3.3

时间:2017-11-23 09:47:07

标签: angular ionic3

我使用的是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"
  },

1 个答案:

答案 0 :(得分:4)

根据以下

更改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

完成:)