Cordova not working

my Ionic 4.12
my npm 6.9.0
my nodejs v10.16.0
Ubuntu 19.04

Cordova is installed in npm in version 9.0.0

$ npm info cordova

cordova@9.0.0 | Apache-2.0 | deps: 8 | versions: 942

had a problem with the ‘ionic start demo tabs’ command as it did not install on the node-sass module.

So I performed ‘sudo npm install --unsafe-perm=true --allow-root’ its working my installl

My error is in install firebase:
sudo ionic cordova plugin add cordova-plugin-firebase

[ERROR] The Cordova CLI was not found on your PATH. Please install Cordova globally:

    npm i -g cordova

I not understand because the cordova cli not installed if by defaout npm 6.9.0 contain cordova?

i view path usr/local/lib/node_modules and only has generator-code, ionic, yo

when i executed sudo npm install -g cordova its redirect content cordova for folter .npm-global

/home/user/.npm-global/bin/cordova -> /home/user/.npm-global/lib/node_modules/cordova/bin/cordova

  • cordova@9.0.0