Cannot load Cordova config.
INVALID_PACKAGE_JSON.
this is the error I get when I try to build my ionic project using Mac.
I don't think there's a problem with package.json because I was able to build the same project in windows for android.
I have updated node, ionic, Cordova. it would be a great help if someone could give me a solution.
here's my package.json
{
"name": "retailer-app",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "https://ionicframework.com/",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/cdk": "^11.0.3",
"@angular/common": "~10.1.6",
"@angular/core": "~10.1.6",
"@angular/forms": "~10.1.6",
"@angular/localize": "^10.2.3",
"@angular/platform-browser": "~10.1.6",
"@angular/platform-browser-dynamic": "~10.1.6",
"@angular/router": "~10.1.6",
"@ionic-native/android-permissions": "^5.29.0",
"@ionic-native/base64": "^5.30.0",
"@ionic-native/core": "^5.0.0",
"@ionic-native/file": "^5.30.0",
"@ionic-native/file-transfer": "^5.30.0",
"@ionic-native/http": "^5.29.0",
"@ionic-native/ionic-webview": "^5.30.0",
"@ionic-native/network": "^5.29.0",
"@ionic-native/splash-screen": "^5.0.0",
"@ionic-native/status-bar": "^5.0.0",
"@ionic-super-tabs/angular": "^7.0.8",
"@ionic/angular": "^5.4.4",
"@ionic/storage": "^2.3.1",
"@ng-bootstrap/ng-bootstrap": "^7.0.0",
"@ngx-translate/core": "^13.0.0",
"@ngx-translate/http-loader": "^6.0.0",
"cordova-android": "9.0.0",
"cordova-ios": "6.1.1",
"ng2-search-filter": "^0.5.1",
"rxjs": "~6.6.3",
"tslib": "^2.0.3",
"zone.js": "~0.10.3"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.1001.7",
"@angular/cli": "~10.1.7",
"@angular/compiler": "^10.2.3",
"@angular/compiler-cli": "^10.2.3",
"@angular/language-service": "~10.1.6",
"@ionic/angular-toolkit": "^2.3.0",
"@types/jasmine": "~3.5.0",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^12.19.4",
"codelyzer": "^6.0.1",
"com-badrit-base64": "^0.2.0",
"cordova-browser": "^6.0.0",
"cordova-plugin-advanced-http": "^3.1.0",
"cordova-plugin-android-permissions": "^1.1.0",
"cordova-plugin-device": "^2.0.3",
"cordova-plugin-file": "^6.0.2",
"cordova-plugin-file-transfer": "^1.7.1",
"cordova-plugin-ionic-keyboard": "^2.2.0",
"cordova-plugin-ionic-webview": "^4.2.1",
"cordova-plugin-network-information": "^1.3.3",
"cordova-plugin-splashscreen": "^5.0.4",
"cordova-plugin-statusbar": "^2.4.3",
"cordova-plugin-whitelist": "^1.3.4",
"cordova-sqlite-storage": "^5.1.0",
"jasmine-core": "~3.5.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "~5.0.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~3.3.0",
"karma-jasmine-html-reporter": "^1.5.0",
"protractor": "~7.0.0",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"typescript": "~3.9.5"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-sqlite-storage": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-webview": {
"ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
},
"cordova-plugin-ionic-keyboard": {},
"cordova-plugin-advanced-http": {},
"cordova-plugin-network-information": {},
"cordova-plugin-android-permissions": {},
"com-badrit-base64": {},
"cordova-plugin-file-transfer": {},
"cordova-plugin-file": {}
},
"platforms": [
"android",
"browser"
]
}
}