我已经使用 npm install -g phonegap
安装了 phonegap 版本 3,现在我想为 andriod 应用安装插件
我安装了 node.js
C:\var\www\sexdiaries.co.uk\app>node -v
v0.10.17
然后是 Phonegapy
phonegap plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git
但这给出了这个错误:
[error] 'plugin' is not a node C:\Users\Hutber\AppData\Roaming\npm\node_modules\phonegap\bin\phonegap.js command.
See 'node C:\Users\Hutber\AppData\Roaming\npm\node_modules\phonegap\bin\phonegap.js help'
最佳答案
试试这个:
phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git
关于android - 无法使用 `phonegap plugin add XXX` 添加插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18429090/