Hi there,
I recently downgraded my version of ionic from 6 to 5 as my new project is built within 5. Since then whenever I try to serve i get an error saying my package.json is malformed. When i try to run anything else I get INVALID_PACKAGE_JSON.
I have included my package.json below. Any help would be much appropriated.
{
"name": "jit",
"version": "1.0.0",
"description": "An Ionic project",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/common": "5.0.3",
"@angular/compiler": "5.0.3",
"@angular/compiler-cli": "5.0.3",
"@angular/core": "5.0.3",
"@angular/forms": "5.0.3",
"@angular/http": "5.0.3",
"@angular/platform-browser": "5.0.3",
"@angular/platform-browser-dynamic": "5.0.3",
"@ionic-native/android-permissions": "^4.7.0",
"@ionic-native/background-geolocation": "^4.6.0",
"@ionic-native/barcode-scanner": "^4.7.0",
"@ionic-native/core": "4.4.0",
"@ionic-native/geolocation": "^4.8.0",
"@ionic-native/http": "^4.11.0",
"@ionic-native/ibeacon": "^4.7.0",
"@ionic-native/native-audio": "^5.30.0",
"@ionic-native/network": "^4.8.0",
"@ionic-native/splash-screen": "4.4.0",
"@ionic-native/sqlite": "^4.10.1",
"@ionic-native/status-bar": "^4.4.0",
"@ionic-native/uid": "^4.10.1",
"@ionic-native/web-intent": "^4.9.0",
"@ionic-native/wheel-selector": "^4.7.0",
"@ionic/pro": "1.0.19",
"@ionic/storage": "2.1.3",
"com-darryncampbell-cordova-plugin-intent": "^1.1.0",
"com.unarin.cordova.beacon": "~3.6.1",
"cordova-android": "^7.0.0",
"cordova-android-support-gradle-release": "^3.0.1",
"cordova-browser": "5.0.4",
"cordova-plugin-advanced-http": "^1.11.1",
"cordova-plugin-android-permissions": "^1.0.0",
"cordova-plugin-crosswalk-webview": "^2.4.0",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-file": "^6.0.1",
"cordova-plugin-geolocation": "^4.0.1",
"cordova-plugin-ibeacon": "^3.6.1",
"cordova-plugin-ionic": "^4.1.6",
"cordova-plugin-ionic-keyboard": "^2.0.5",
"cordova-plugin-nativeaudio": "^3.0.9",
"cordova-plugin-network-information": "^2.0.1",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.1",
"cordova-plugin-uid": "^1.3.0",
"cordova-plugin-whitelist": "^1.3.3",
"cordova-sqlite-storage": "^2.3.3",
"cordova-wheel-selector-plugin": "^1.1.0",
"howler": "^2.2.1",
"ion-multi-picker": "^2.1.2",
"ionic-angular": "3.9.2",
"ionicons": "3.0.0",
"motorola-datawedge-cordova-plugin-master": "git+https://github.com/BlueFletch/motorola-datawedge-cordova-plugin.git",
"phonegap-plugin-barcodescanner": "^7.1.2",
"rxjs": "5.5.2",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.18"
},
"devDependencies": {
"@ionic/app-scripts": "3.2.4",
"@ionic/lab": "3.2.12",
"com.unarin.cordova.beacon": "^3.6.1",
"typescript": "2.4.2",
"ws": "^3.3.2"
},
"cordova": {
"plugins": {
"cordova-plugin-ionic-keyboard": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-statusbar": {},
"cordova-wheel-selector-plugin": {},
"cordova-plugin-crosswalk-webview": {},
"cordova-plugin-device": {},
"cordova-plugin-geolocation": {
"GEOLOCATION_USAGE_DESCRIPTION": "To locate you"
},
"cordova-sqlite-storage": {},
"cordova-plugin-android-permissions": {},
"phonegap-plugin-barcodescanner": {
"ANDROID_SUPPORT_V4_VERSION": "27.+"
},
"com.unarin.cordova.beacon": {},
"cordova-plugin-network-information": {},
"com-darryncampbell-cordova-plugin-intent": {},
"cordova-plugin-advanced-http": {},
"cordova-android-support-gradle-release": {
"ANDROID_SUPPORT_VERSION": "27.+"
},
"cordova-plugin-nativeaudio": {}
},
"platforms": [
"browser"
]
}
}