Can't remove plugin

every time I build iOS, it install background geolocation plugin even if I erase it on config.xml.
so , I command below

ionic cordova plugin rm cordova-plugin-mauron85-background-geolocation 2.2.5

but has error like below.

cordova plugin remove cordova-plugin-mauron85-background-geolocation --save
:heavy_multiplication_x: Running command - failed!
[ERROR] An error occurred while running cordova plugin remove cordova-plugin-mauron85-background-geolocation --save

    (exit code 1):

    Uninstalling cordova-plugin-mauron85-background-geolocation from android
    Subproject Path: CordovaLib
    Uninstalling cordova-plugin-mauron85-background-geolocation from ios
    Removing "cordova-plugin-mauron85-background-geolocation"
    Error: npm: Command failed with exit code 1 Error output:
    npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was
    generated for lockfileVersion@0. I'll try to do my best with it!
    npm ERR! code E404
    npm ERR! 404 Not Found: mx.ferreyra.callnumber@~0.0.2

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /Users/jpd/.npm/_logs/2017-09-24T09_03_34_864Z-debug.log

also, I can’t remove iOS platform…for below error

jeongpyeongduui-MacBook:moontomoon jpd$ ionic cordova platform rm ios

cordova platform remove ios --save
:heavy_multiplication_x: Running command - failed!
[ERROR] An error occurred while running cordova platform remove ios --save (exit code 1):

    Removing platform ios from config.xml file...
    Removing ios from cordova.platforms array in package.json
    Error: npm: Command failed with exit code 1 Error output:
    npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was
    generated for lockfileVersion@0. I'll try to do my best with it!
    npm ERR! code E404
    npm ERR! 404 Not Found: mx.ferreyra.callnumber@~0.0.2

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /Users/jpd/.npm/_logs/2017-09-24T09_15_29_619Z-debug.log

haha
this plugin makes me crazy

I thought call number plugin has problem and want to remove it

cordova plugin list
cordova-plugin-add-swift-support 1.6.0 "AddSwiftSupport"
cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-console 1.0.7 "Console"
cordova-plugin-device 1.1.6 "Device"
cordova-plugin-dialogs 1.3.3 "Notification"
cordova-plugin-geolocation 2.4.3 "Geolocation"
cordova-plugin-googleplus 5.1.1 "Google SignIn"
cordova-plugin-inappbrowser 1.7.1 "InAppBrowser"
cordova-plugin-mauron85-background-geolocation 2.2.5 "CDVBackgroundGeolocation"
cordova-plugin-nativegeocoder 1.0.2 "NativeGeocoder"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.3 "StatusBar"
cordova-plugin-whitelist 1.3.2 "Whitelist"
cordova-plugin-x-toast 2.6.0 "Toast"
ionic-plugin-keyboard 2.2.1 "Keyboard"
mx.ferreyra.callnumber 0.0.2 "Cordova Call Number Plugin"
onesignal-cordova-plugin 2.2.0 “OneSignal Push Notifications”
{}
jeongpyeongduui-MacBook:moontomoon jpd$ ionic cordova plugin rm mx.ferreyra.callnumber

cordova plugin remove mx.ferreyra.callnumber --save
:heavy_multiplication_x: Running command - failed!
[ERROR] An error occurred while running cordova plugin remove mx.ferreyra.callnumber --save (exit code 1):

    Uninstalling mx.ferreyra.callnumber from android
    Removing "mx.ferreyra.callnumber"
    Error: npm: Command failed with exit code 1 Error output:
    npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was
    generated for lockfileVersion@0. I'll try to do my best with it!
    npm ERR! code E404
    npm ERR! 404 Not Found: mx.ferreyra.callnumber@~0.0.2

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /Users/jpd/.npm/_logs/2017-09-24T09_44_20_586Z-debug.log

dosen’t work neither

Hi,
I am having this problem too.
I install the ‘Call Number’ native plugin, “call-number”: “^1.0.1” and “mx.ferreyra.callnumber”: “~0.0.2” are added to the package.json.
If I tried to remove either the android or iOS plataform, it comes out with error:
npm ERR! 404 Not Found: mx.ferreyra.callnumber@~0.0.2
If I tried to run ‘npm install’ again, same error too.

Couldn’t find answer so far.

have you guys resolved this? I just ran into it today

Do you all share the problem with same plugin?
Can one of you link to its repo on Github?

Search in your plugins folder and delete from this. After try with ionic cordova plugin rm cordova-plugin-mauron85-background-geolocation

1 Like