Local notifications plugin is not installing

#1

When I’m trying to install the local notification plugin from the command

ionic cordova plugin add cordova-plugin-local-notification

I’m getting the error as


Cannot find plugin.xml for plugin “cordova-plugin-local-notification”. Please tr
y adding it again.
[ERROR] An error occurred while running subprocess cordova.

    cordova plugin add cordova-plugin-local-notification --save exited with

    exit code 1.

    Re-running this command with the --verbose flag may provide more
    information.
when I try to run it with `verbose` I'm getting the message as 
  ionic:lib Terminal info: { tty: true, ci: false, windows: true } +0ms
  ionic:lib CLI global options: { _: [ 'cordova', 'plugin', 'add', 'cordova-plug
in-local-notification' ], help: null, h: null, verbose: true, quiet: null, inter
active: true, color: true, confirm: null, json: null, project: null, '--': [] }
+5ms
  ionic:lib:project Project type from config: Ionic 2/3 (ionic-angular) +0ms
  ionic:lib:project Project details: { configPath: 'D:\\product\\project-1\\fron
tend\\ionic.config.json', errors: [], context: 'app', type: 'ionic-angular' } +1
ms
  ionic Context: { binPath: 'C:\\Users\\hi\\AppData\\Roaming\\npm\\node_modules\
\ionic\\bin\\ionic', libPath: 'C:\\Users\\hi\\AppData\\Roaming\\npm\\node_module
s\\ionic', execPath: 'D:\\product\\project-1\\frontend', version: '4.5.0' } +0ms

  ionic:lib:integrations:cordova:config Using config.xml: D:\product\project-1\f
rontend\config.xml +0ms
  ionic:lib:telemetry Sending telemetry for command: 'ionic cordova plugin' [ 'a
dd',
  ionic:lib:telemetry   'cordova-plugin-local-notification',
  ionic:lib:telemetry   '--verbose',
  ionic:lib:telemetry   '--interactive',
  ionic:lib:telemetry   '--color' ] +0ms
> cordova plugin add cordova-plugin-local-notification --verbose --save
No scripts found for hook "before_plugin_add".
No version specified for cordova-plugin-local-notification, retrieving version f
rom config.xml
No version for cordova-plugin-local-notification saved in config.xml or package.
json
Attempting to use npm info for cordova-plugin-local-notification to choose a com
patible release
Running command: cmd "/s /c ""C:\Program Files\nodejs\npm.cmd" view cordova-plug
in-local-notification --json""
Command finished with error code 0: cmd /s /c ""C:\Program Files\nodejs\npm.cmd"
 view cordova-plugin-local-notification --json"
npm info for cordova-plugin-local-notification did not contain any engine info.
Fetching latest release
Calling plugman.fetch on plugin "cordova-plugin-local-notification"
Cannot find plugin.xml for plugin "cordova-plugin-local-notification". Please tr
y adding it again.
CordovaError: Cannot find plugin.xml for plugin "cordova-plugin-local-notificati
on". Please try adding it again.
    at new PluginInfo (C:\Users\hi\AppData\Roaming\npm\node_modules\cordova\node
_modules\cordova-common\src\PluginInfo\PluginInfo.js:367:15)
    at PluginInfoProvider.get (C:\Users\hi\AppData\Roaming\npm\node_modules\cord
ova\node_modules\cordova-common\src\PluginInfo\PluginInfoProvider.js:35:32)
    at C:\Users\hi\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova
-lib\src\plugman\fetch.js:165:51
    at _fulfilled (C:\Users\hi\AppData\Roaming\npm\node_modules\cordova\node_mod
ules\q\q.js:854:54)
    at self.promiseDispatch.done (C:\Users\hi\AppData\Roaming\npm\node_modules\c
ordova\node_modules\q\q.js:883:30)
    at Promise.promise.promiseDispatch (C:\Users\hi\AppData\Roaming\npm\node_mod
ules\cordova\node_modules\q\q.js:816:13)
    at C:\Users\hi\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:
570:49
    at runSingle (C:\Users\hi\AppData\Roaming\npm\node_modules\cordova\node_modu
les\q\q.js:137:13)
    at flush (C:\Users\hi\AppData\Roaming\npm\node_modules\cordova\node_modules\
q\q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
[ERROR] An error occurred while running subprocess cordova.

        cordova plugin add cordova-plugin-local-notification --verbose --save
        exited with exit code 1.

        Re-running this command with the --verbose flag may provide more
        information.
  ionic:cli-framework:utils:process onBeforeExit handler: process.exit received
+0ms
  ionic:cli-framework:utils:process onBeforeExit handler: running 1 functions +1
ms
  ionic:cli-framework:utils:process error while killing process tree for 12068:
{ Error: Command failed: taskkill /pid 12068 /T /F
  ionic:cli-framework:utils:process ERROR: The process "12068" not found.
  ionic:cli-framework:utils:process
  ionic:cli-framework:utils:process     at ChildProcess.exithandler (child_proce
ss.js:275:12)
  ionic:cli-framework:utils:process     at emitTwo (events.js:126:13)
  ionic:cli-framework:utils:process     at ChildProcess.emit (events.js:214:7)
  ionic:cli-framework:utils:process     at maybeClose (internal/child_process.js
:925:16)
  ionic:cli-framework:utils:process     at Process.ChildProcess._handle.onexit (
internal/child_process.js:209:5)
  ionic:cli-framework:utils:process   killed: false,
  ionic:cli-framework:utils:process   code: 128,
  ionic:cli-framework:utils:process   signal: null,
  ionic:cli-framework:utils:process   cmd: 'taskkill /pid 12068 /T /F' } +92ms
  ionic:cli-framework:utils:process onBeforeExit handler: error from function: {
 Error: Command failed: taskkill /pid 12068 /T /F
  ionic:cli-framework:utils:process ERROR: The process "12068" not found.
  ionic:cli-framework:utils:process
  ionic:cli-framework:utils:process     at ChildProcess.exithandler (child_proce
ss.js:275:12)
  ionic:cli-framework:utils:process     at emitTwo (events.js:126:13)
  ionic:cli-framework:utils:process     at ChildProcess.emit (events.js:214:7)
  ionic:cli-framework:utils:process     at maybeClose (internal/child_process.js
:925:16)
  ionic:cli-framework:utils:process     at Process.ChildProcess._handle.onexit (
internal/child_process.js:209:5)
  ionic:cli-framework:utils:process   killed: false,
  ionic:cli-framework:utils:process   code: 128,
  ionic:cli-framework:utils:process   signal: null,
  ionic:cli-framework:utils:process   cmd: 'taskkill /pid 12068 /T /F' } +7ms
  ionic:cli-framework:utils:process onBeforeExit handler: exiting (exit code 1)
+6ms