I am working on an android app and I want to detect when my internet connection is available and not with this ionic plugin, cordova-plugin-network-informationbut when i ran this command ionic cordova plugin add cordova-plugin-network-information in my command prompt i got this error
Unexpected token in JSON at position 0
[ERROR] An error occurred while running subprocess cordova.
cordova.cmd plugin add cordova-plugin-network-information exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
even when i added the --verbose to it, i still got the same error i am using windows 10, please how can i resolve this
