ionic-nativeをバージョン3.4.3に更新しようとしています
しかし、それは機能しません。最後の2.xバージョンであるバージョン2.9.0に更新されました。
どうすればもっと更新できますか?
package.jsonのバージョンを3.4.3に変更すると、次のように表示されます。
npm ERR! notarget No compatible version found: [email protected]
npm ERR! notarget Valid install targets:
npm ERR! notarget 2.9.0, 2.8.1, 2.8.0, 2.7.0, 2.6.0, 2.5.1, 2.5.0, 2.4.1, 2.4.0, 2.3.2, 2.3.1, 2.3.0, 2.2.17, 2.2.16, 2.2.15, 2.2.14, 2.2.13, 2.2.12, 2.2.11, 2.2.10, 2.2.9, 2.2.8, 2.2.7, 2.2.6, 2.2.5, 2.2.4, 2.2.3, 2.2.2, 2.2.1, 2.2.0, 2.1.9, 2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4, 2.1.3, 2.1.2, 2.0.3, 2.0.2, 2.0.1, 2.0.0, 1.3.27, 1.3.26, 1.3.25, 1.3.24, 1.3.23, 1.3.22, 1.3.21, 1.3.20, 1.3.19, 1.3.18, 1.3.17, 1.3.16, 1.3.15, 1.3.14, 1.3.13, 1.3.12, 1.3.11, 1.3.10, 1.3.9, 1.3.8, 1.3.7, 1.3.6, 1.3.5, 1.3.4, 1.3.3, 1.3.2, 1.3.1, 1.3.0, 1.2.4, 1.2.3, 1.2.2, 1.2.1, 1.2.0, 1.1.1, 1.1.0, 1.0.12, 1.0.11, 1.0.10, 1.0.9, 1.0.8, 1.0.7
なぜなのかご存知ですか?
私のイオンバージョン:
Cordova CLI: 6.5.0
Ionic Framework Version: 2.3.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.2.3
ios-deploy version: 1.9.1
ios-sim version: 5.0.13
ありがとう
編集:
package.json:
"dependencies": {
"@angular/common": "^4.0.1",
"@angular/compiler": "4.0.1",
"@angular/compiler-cli": "4.0.1",
"@angular/core": "^4.0.1",
"@angular/forms": "4.0.1",
"@angular/http": "4.0.1",
"@angular/platform-browser": "4.0.1",
"@angular/platform-browser-dynamic": "4.0.1",
"@angular/platform-server": "4.0.1",
"@ionic-native/core": "^3.4.3",
"@ionic/storage": "^2.0.1",
"chart.js": "^2.4.0",
"ionic-angular": "2.3.0",
"ionic-native": "3.4.3",
"ionicons": "3.0.0",
"midata": "git+https://github.com/i4mi/midata.js.git#v1.4",
"ng2-charts": "^1.4.4",
"pouchdb": "^6.1.0",
"rxjs": "5.2.0",
"zone.js": "0.8.5"
},
EDIT2:
"dependencies": {
"@angular/common": "2.4.8",
"@angular/compiler": "2.4.8",
"@angular/compiler-cli": "2.4.8",
"@angular/core": "2.4.8",
"@angular/forms": "2.4.8",
"@angular/http": "2.4.8",
"@angular/platform-browser": "2.4.8",
"@angular/platform-browser-dynamic": "2.4.8",
"@angular/platform-server": "2.4.8",
"@ionic-native/core": "3.1.0",
"@ionic-native/splash-screen": "3.1.0",
"@ionic-native/status-bar": "3.1.0",
"@ionic/storage": "2.0.0",
"ionic-angular": "2.3.0",
"ionicons": "3.0.0",
"rxjs": "5.0.1",
"sw-toolbox": "3.4.0",
"zone.js": "0.7.2"
},
"devDependencies": {
"@ionic/app-scripts": "^1.0.0",
"typescript": "2.2.2"
},
"cordovaPlugins": [
"cordova-plugin-whitelist",
"cordova-plugin-console",
"cordova-plugin-statusbar",
"cordova-plugin-device",
"cordova-plugin-splashscreen",
"ionic-plugin-keyboard",
"ionic-plugin-keyboard@~2.2.1",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"cordova-plugin-splashscreen@~4.0.1",
"cordova-plugin-screen-orientation",
"cordova-plugin-camera",
"cordova-plugin-inappbrowser",
"cordova-plugin-network-information",
"cordova-sqlite-storage",
"cordova-sqlite-storage@~2.0.2",
"cordova-plugin-file",
"cordova-plugin-secure-storage"
],
"cordovaPlatforms": [
"ios",
{
"platform": "ios",
"version": "",
"locator": "ios"
}
],
"description": "OnkoApp2: An Ionic project"
}
更新
以下のように、すべてのネイティブパッケージを最新のものに更新する必要があります。
"@ionic-native/core": "3.4.3",
"@ionic-native/splash-screen": "3.4.3",
"@ionic-native/status-bar": "3.4.3",
その後: npm i
古い答え
あなたはあなたのpackage.json
ファイルでこれをする必要があるだけです。
古いもの("ionic-native": "2.2.11"
)をこれに置き換えます"@ionic-native/core": "3.1.0",
その実行後 npm i
注:あなたが使用する必要があります"@angular/core": "2.4.8"
あなたとIonic2
app.NoをAngular4
まだサポートしています。
あなたのpackage.json
ファイルは次のようにする必要があります。
"dependencies": {
"@angular/common": "2.4.8",
"@angular/compiler": "2.4.8",
"@angular/compiler-cli": "2.4.8",
"@angular/core": "2.4.8",
"@angular/forms": "2.4.8",
"@angular/http": "2.4.8",
"@angular/platform-browser": "2.4.8",
"@angular/platform-browser-dynamic": "2.4.8",
"@angular/platform-server": "2.4.8",
"@ionic-native/core": "3.1.0",
"@ionic-native/splash-screen": "3.1.0",
"@ionic-native/status-bar": "3.1.0",
"@ionic/storage": "2.0.0",
"ionic-angular": "2.3.0",
"ionicons": "3.0.0",
"rxjs": "5.0.1",
"sw-toolbox": "3.4.0",
"zone.js": "0.7.2"
}、
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加