我参考了这个link并尝试通过输入此命令将facebook插件添加到我的phonegap项目中
cordova -d plugin add C:\Users\user\Desktop\Tinder-like Marketplace\plugins --variable APP_ID="123456789" --variable APP_NAME="myApplication"
但它会让我回头
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
任何人都知道出了什么问题?
答案 0 :(得分:0)
我找到了解决方案,我收到此错误,因为我从未安装git和cordova,路径错误。安装完成后,将路径更改为https://github.com/Wizcorp/phonegap-facebook-plugin,然后一切正常。