0
包版本混亂:NPM包版本衝突
我在NPM一個新手,一直在努力建立一個離子2應用程序。我無法弄清楚如何解決所有這些軟件包版本衝突。在我執行的圖片中顯示的命令之前:清理node_modules,npm cache clean,npm unpdate -g npm和npm install。
這裏是我的package.json:
{
"name": "io.cordova.myappb7116d",
"author": "",
"homepage": "",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/common": "2.2.1",
"@angular/compiler": "2.2.1",
"@angular/compiler-cli": "2.2.1",
"@angular/core": "2.2.1",
"@angular/forms": "2.2.1",
"@angular/http": "2.2.1",
"@angular/platform-browser": "2.2.1",
"@angular/platform-browser-dynamic": "2.2.1",
"@angular/platform-server": "2.2.1",
"@ionic-native/core": "^3.1.0",
"@ionic-native/http": "^3.4.4",
"@ionic-native/native-storage": "^3.4.4",
"ionic-angular": "2.0.0-rc.4",
"ionic-native": "2.2.11",
"ionicons": "3.0.0",
"localforage-cordovasqlitedriver": "^1.6.0",
"npm-install-version": "^6.0.1",
"rxjs": "^5.0.1",
"sw-toolbox": "^3.6.0",
"uuid": "^3.0.1",
"zone.js": "0.6.26"
},
"devDependencies": {
"@ionic/app-scripts": "^1.1.4",
"typescript": "2.0.9"
},
"cordovaPlugins": [
"cordova-plugin-whitelist",
"cordova-plugin-console",
"cordova-plugin-statusbar",
"cordova-plugin-device",
"cordova-plugin-splashscreen",
"ionic-plugin-keyboard"
],
"cordovaPlatforms": [],
"-vs-binding": {
"BeforeBuild": [
"ionic:build"
]
}
}
請將您的package.json添加到問題中... –
您仍然在RC4上我建議您更新軟件包json as ionic在更改日誌上說,然後嘗試安裝所有 –