0

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.

4
  • Have you tried the answer? Commented Dec 20, 2019 at 14:15
  • Yes. Error occur : Error: Cannot find module "@ionic-native/firebase". Commented Dec 23, 2019 at 7:11
  • npmjs.com/package/@ionic-native/firebase do npm install @ionic-native/firebase Commented Dec 23, 2019 at 7:27
  • Please upvote the answer and mark it as correct since it helped you, thank you Commented Dec 23, 2019 at 7:27

1 Answer 1

0

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.