I am getting error all the time while installing Cordova plugins

I am working in ionic 3 for this when i try to install cordova plugin i get error,

now i am trying to add this plugin

ionic cordova plugin add cordova-plugin-background-mode

then i encountered this error

Error: Cannot find module 'internal/fs'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at evalmachine.<anonymous>:18:20
    at Object.<anonymous> (/usr/local/lib/node_modules/ionic/node_modules/unzip/node_modules/fstream/node_modules/graceful-fs/fs.js:11:1)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)


Cannot find module 'internal/fs' (CLI v2.0.0-beta.31)

Your system information:

Cordova CLI: 7.0.1
Ionic Framework Version: 3.6.1
Ionic CLI Version: 2.0.0-beta.31
Ionic App Lib Version: 2.0.0-beta.17
OS: Distributor ID:	Ubuntu Description:	Ubuntu 16.04.2 LTS 
Node Version: v7.10.1

i know cli is 2.0,if i update cli to 3.9 i get one more error

Hi, @Jayanthkumar

could you try

$ ionic plugin add cordova-plugin-background-mode

Hope, this will solve your issue
Thanks,

This is not even 2.0 but a beta of 2.0. Debugging this is just a waste of time.

You will have to upgrade to a recent version of the CLI, best 3.10.x.

If you get another error, create a new topic for that please.