Ionic cordova build error- @app/scripts , metadata version mismatch versions 3 and 4

When i run the following command it compiles and builds, however when testing this on my device it doesnt install, the reason i believe is to do with the ‘ionic’ keyword that i did not include into the command.

 $cordova build android --prod --release 

when i run the following command, i get the error message attached at the bottom of this question, it says that my app-scripts caused an error.

$ionic cordova build android --emulate --prod --release

i have tried to run npm install and editing the versions of ionic within package.json however the troubleshooting hasnt helped much.

below is my package.json and versions.

{
“name”: “sqlite”,
“version”: “0.0.1”,
“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”: “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/core”: “4.12.2”,
@ionic-native/splash-screen”: “4.3.2”,
@ionic-native/sqlite”: “4.12.2”,
@ionic-native/status-bar”: “4.3.2”,
@ionic/app-scripts”: “^3.2.0”,
@ionic/storage”: “2.0.1”,
“cordova-android”: “6.3.0”,
“cordova-plugin-device”: “^1.1.7”,
“cordova-plugin-ionic-webview”: “^1.2.1”,
“cordova-plugin-splashscreen”: “^4.1.0”,
“cordova-plugin-statusbar”: “^2.4.2”,
“cordova-plugin-whitelist”: “^1.3.3”,
“cordova-sqlite-storage”: “^2.4.0”,
“ionic-angular”: “3.7.1”,
“ionic-plugin-keyboard”: “^2.2.1”,
“ionicons”: “3.0.0”,
“moment”: “^2.22.2”,
“rxjs”: “5.4.3”,
“sw-toolbox”: “3.6.0”,
“zone.js”: “0.8.18”
},
“devDependencies”: {
“typescript”: “2.3.4”
},
“description”: “An Ionic project”,
“cordova”: {
“plugins”: {
“cordova-sqlite-storage”: {},
“ionic-plugin-keyboard”: {},
“cordova-plugin-whitelist”: {},
“cordova-plugin-device”: {},
“cordova-plugin-splashscreen”: {},
“cordova-plugin-ionic-webview”: {},
“cordova-plugin-statusbar”: {}
},
“platforms”: [
“android”
]
}
}

ionic info

error message