0
votes

I want to add Phone Authentication in Ionic with Firebase

Command :

ionic cordova plugin add https://github.com/jestcastro/cordova-plugin-firebase.git      

Error

Failed to fetch plugin https://github.com/jestcastro/cordova-plugin-firebase.git via registry.

cordova.cmd plugin add https://github.com/jestcastro/cordova-plugin-firebase.git
Failed to fetch plugin https://github.com/jestcastro/cordova-plugin-firebase.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 1 Error output:
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t https://github.com/jestcastro/cordova-plugin-firebase.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Varni 2\AppData\Roaming\npm-cache_logs\2019-12-20T08_30_07_521Z-debug.log
[ERROR] An error occurred while running subprocess cordova.

cordova.cmd plugin add https://github.com/jestcastro/cordova-plugin-firebase.git exited with exit code 1.

Re-running this command with the --verbose flag may provide more information.

1
Have you tried the answer? - Peter Haddad
Yes. Error occur : Error: Cannot find module "@ionic-native/firebase". - Unnati Patadia
npmjs.com/package/@ionic-native/firebase do npm install @ionic-native/firebase - Peter Haddad
Please upvote the answer and mark it as correct since it helped you, thank you - Peter Haddad

1 Answers

0
votes

To add the plugin, execute the following command:

cordova plugin add [email protected] --save

You can check the Github repo for more info:

https://github.com/jestcastro/cordova-plugin-firebase/blob/master/README.md#installation