When I try to remove the apache cordova plugin "cordova-plugin-firebase", I get the error "Unexpected string in JSON at position 1296" but the console don't show a file or something which help me to understand the error. Do someone have an idea?
I remove every platform and that don't help to remove this error.
The comand line:
cordova plugin remove cordova-plugin-firebase
The result:
Removing "cordova-plugin-firebase"
Unexpected string in JSON at position 1296
package.json
{
"name": "AppName",
"version": "1.0.0",
"private": true,
"dependencies": {
"cordova-plugin-firebase": "^2.0.5",
"phonegap-plugin-multidex": "^1.0.0"
},
"cordova": {
"platforms": [],
"plugins": {
"cordova-plugin-whitelist": {},
"cordova-plugin-inappbrowser": {},
"cordova-plugin-dialogs": {},
"cordova-plugin-device": {},
"es6-promise-plugin": {},
"cordova-plugin-deeplinks": {},
"cordova-plugin-x-socialsharing": {},
"cordova-plugin-extension": {},
"cordova-admobsdk": {},
"cordova-plugin-admobpro": {},
"cordova-plugin-camera": {},
"phonegap-plugin-multidex": {},
"phonegap-plugin-push": {},
"cordova-plugin-firebase": {}
}
},
"devDependencies": {
"cordova-plugin-whitelist": "1.2.2",
"cordova-plugin-inappbrowser": "~3.0.0",
"cordova-plugin-dialogs": "~2.0.1",
"cordova-plugin-device": "~2.0.2",
"es6-promise-plugin": "~4.2.2",
"cordova-plugin-deeplinks": "~1.1.0",
"cordova-plugin-x-socialsharing": "~5.4.3",
"cordova-plugin-extension": "~1.5.4",
"cordova-admobsdk": "~7.35.0",
"cordova-plugin-admobpro": "~2.35.3",
"phonegap-plugin-push": "~2.2.3",
"cordova-plugin-camera": "~2.4.1",
"cordova-plugin-firebase": "~2.0.5"
}
}
Try
and then your command
cordova plugin remove cordova-plugin-firebase