将Ionic Framework版本降级为2.0.0-rc.3至beta

时间:2016-12-13 08:07:19

标签: ionic2

我正在使用Ionic 2,并希望将Ionic Framework Version: 2.0.0-rc.3降级为beta版本。

ionic info

Your system information:

Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.0.0-beta.31
Ionic App Lib Version: 2.0.0-beta.17
OS:
Node Version: v6.2.2

我尝试了以下内容:

npm uninstall -g ionic
npm install -g ionic@2.0.0-beta.31

但是正如你所看到的,所有这些都是降级Ionic CLI Version

问题

如何降级Ionic Framework Version

任何帮助表示感谢。

更新

我的package.json有以下内容:

"ionic-angular": "^2.0.0-rc.3",

我是否需要将其更改为:

"ionic-angular": "^2.0.0-beta.31",

然后我运行一些东西让变化生效吗?

更新

我尝试删除node_modules(来自...\AppData\Roaming\npm),但现在我得到了:

npm install
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.15
npm WARN @angular/core@2.2.4 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN @angular/core@2.2.4 requires a peer of zone.js@^0.6.21 but none was installed.
npm WARN @angular/http@2.2.4 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN @angular/platform-browser@2.2.4 requires a peer of @angular/common@2.2.4 but none was installed.
npm WARN @angular/platform-browser-dynamic@2.2.4 requires a peer of @angular/common@2.2.4 but none was installed.
npm WARN @ionic/cloud-angular@0.4.0 requires a peer of @angular/core@>=2.0.0-rc.0 <2.0.0-rc.5 but none was installed.
npm WARN accounts-phone@0.0.1 requires a peer of meteor-client-side@~0.2.3 but none was installed.
npm WARN ionic-angular@2.0.0-rc.3 requires a peer of @angular/common@2.1.1 but none was installed.
npm WARN ionic-angular@2.0.0-rc.3 requires a peer of @angular/compiler@2.1.1 but none was installed.
npm WARN ionic-angular@2.0.0-rc.3 requires a peer of @angular/compiler-cli@2.1.1 but none was installed.
npm WARN ionic-angular@2.0.0-rc.3 requires a peer of @angular/core@2.1.1 but none was installed.
npm WARN ionic-angular@2.0.0-rc.3 requires a peer of @angular/forms@2.1.1 but none was installed.
npm WARN ionic-angular@2.0.0-rc.3 requires a peer of @angular/http@2.1.1 but none was installed.
npm WARN ionic-angular@2.0.0-rc.3 requires a peer of @angular/platform-browser@2.1.1 but none was installed.
npm WARN ionic-angular@2.0.0-rc.3 requires a peer of @angular/platform-browser-dynamic@2.1.1 but none was installed.
npm WARN ionic-angular@2.0.0-rc.3 requires a peer of @angular/platform-server@2.1.1 but none was installed.
npm WARN ionic-angular@2.0.0-rc.3 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN ionic-angular@2.0.0-rc.3 requires a peer of zone.js@~0.6.26 but none was installed.
npm WARN theWhoZoo@ No repository field.
npm WARN theWhoZoo@ No license field.

现在没有node_modules文件夹。

1 个答案:

答案 0 :(得分:1)

你可以将这个package.json用于beta11,我用这个来降级

{
  "dependencies": {
    "@angular/common": "2.0.0-rc.4",
    "@angular/compiler": "2.0.0-rc.4",
    "@angular/core": "2.0.0-rc.4",
    "@angular/platform-browser": "2.0.0-rc.4",
    "@angular/platform-browser-dynamic": "2.0.0-rc.4",
    "@angular/http": "2.0.0-rc.4",
    "@angular/forms": "0.2.0",
    "es6-shim": "0.35.1",
    "ionic-angular": "2.0.0-beta.11",
    "ionic-native": "1.3.17",
    "ionicons": "3.0.0",
    "reflect-metadata": "0.1.8",
    "rxjs": "5.0.0-beta.6",
    "zone.js": "0.6.12"
  },
  "devDependencies": {
    "del": "2.2.0",
    "gulp": "3.9.1",
    "gulp-watch": "4.3.5",
    "ionic-gulp-browserify-typescript": "2.0.0",
    "ionic-gulp-fonts-copy": "^1.0.0",
    "ionic-gulp-html-copy": "^1.0.0",
    "ionic-gulp-sass-build": "^1.0.0",
    "ionic-gulp-scripts-copy": "^2.0.0",
    "ionic-gulp-tslint": "^1.0.0",
    "tslint-ionic-rules": "0.0.4",
    "run-sequence": "1.1.5"
  },
  "name": "hhbuyer",
  "description": "hhbuyer: An Ionic project",
  "cordovaPlugins": [
    "cordova-plugin-device",
    "cordova-plugin-console",
    "cordova-plugin-whitelist",
    "cordova-plugin-splashscreen",
    "cordova-plugin-statusbar",
    "ionic-plugin-keyboard"
  ],
  "cordovaPlatforms": []
}