Failed to install 'cordova-plugin-badge': CordovaError: Using "requireCordovaModule" to load non-cordova module "fs" is not supported. Instead, add this m
odule to your dependencies and use regular "require" to load it.
at Context.requireCordovaModule (C:\Users\xxx\AppData\Roaming\npm\node_modules\phonegap\node_modules\cordova-lib\src\hooks\Context.js:57:15)
at module.exports (C:\Project\hooks\removeAdFramework.js:9:20)
at runScriptViaModuleLoader (C:\Users\xxx\AppData\Roaming\npm\node_modules\phonegap\node_modules\cordova-lib\src\hooks\HooksRunner.js:181:32)
at runScript (C:\Users\xxx\AppData\Roaming\npm\node_modules\phonegap\node_modules\cordova-lib\src\hooks\HooksRunner.js:157:16)
at C:\Users\xxx\AppData\Roaming\npm\node_modules\phonegap\node_modules\cordova-lib\src\hooks\HooksRunner.js:125:20
at processTicksAndRejections (internal/process/task_queues.js:93:5)
Using "requireCordovaModule" to load non-cordova module "fs" is not supported. Instead, add this module to your dependencies and use regular "require" to
load it.