[英]Unable to add facebook plugin to phonegap app
I refered to this link and tried to add the facebook plugin into my phonegap project by input this command 我参考了此链接,并尝试通过输入以下命令将facebook插件添加到我的phonegap项目中
cordova -d plugin add C:\Users\user\Desktop\Tinder-like Marketplace\plugins --variable APP_ID="123456789" --variable APP_NAME="myApplication"
but it return me 但它又回到了我
No scripts found for hook "before_plugin_add".
No version specified for C:\Users\user\Desktop\Tinder-like, retrieving version from config.xml
Attempting to use npm info for C:\Users\user\Desktop\Tinder-liketo choose a compatible release
Error: Registry returned 404 for GET on https://registry.npmjs.org/com/phonegap.tinderlike
Anyone know what is going wrong? 有人知道怎么了吗?
I have found the solution, I got this error because I never install the git and cordova and the path is wrong. 我找到了解决方案,因为没有安装git和cordova且路径错误,因此出现了此错误。 After the installation and change the path to https://github.com/Wizcorp/phonegap-facebook-plugin , then everything work fine. 安装后,将路径更改为https://github.com/Wizcorp/phonegap-facebook-plugin ,然后一切正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.