为firebase添加插件时出错:无法通过注册表获取插件https://github.com/jestcastro/cordova-plugin-firebase.git

问题描述 投票:0回答:1

我想在带有Firebase的Ionic中添加电话身份验证

命令:

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

错误

无法通过注册表获取插件https://github.com/jestcastro/cordova-plugin-firebase.git

cordova.cmd插件添加https://github.com/jestcastro/cordova-plugin-firebase.git无法通过注册表获取插件https://github.com/jestcastro/cordova-plugin-firebase.git。可能是连接问题,或者插件规格不正确。检查您的连接和插件名称/版本/ URL。错误:npm:命令失败,退出代码为1错误输出:npm ERR!代码ENOENTnpm ERR! syscall生成gitnpm ERR!路径gitnpm ERR! errno ENOENTnpm ERR! enoent执行时出错:npm ERR! enoent未定义ls-remote -h -thttps://github.com/jestcastro/cordova-plugin-firebase.gitnpm ERR!天生的npm ERR!天生的npm ERR! enoent生成git ENOENTnpm ERR! enoent这与npm无法找到文件有关。npm ERR! enoent

npm ERR!可以在以下位置找到此运行的完整日志:npm ERR! C:\ Users \ Varni 2 \ AppData \ Roaming \ npm-cache_logs \ 2019-12-20T08_30_07_521Z-debug.log[错误]运行子流程cordova时发生错误。

cordova.cmd插件添加https://github.com/jestcastro/cordova-plugin-firebase.git以退出退出代码1。

使用--verbose标志重新运行此命令可能会提供更多信息。

angular firebase firebase-authentication ionic3
1个回答
0
投票

要添加插件,请执行以下命令:

© www.soinside.com 2019 - 2024. All rights reserved.