android - 无法使用 `phonegap plugin add XXX` 添加插件

标签 android node.js cordova

我已经使用 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/

相关文章:

安卓屏幕尺寸

android - 在 android 上的 AlarmManager 中安排事件

android - 打开 Android 键盘时如何让我的 Cordova 应用程序保持全屏显示?

android - 来自 native 的异常触发销毁事件

android - 通过已安装的应用程序处理 Android 中的媒体文件

android - 我的手机没有在 android studio 中显示

node.js - npm scripts 两个破折号是什么意思?

node.js - NodeJS 流响应以防止内存不足错误

node.js - 对于非 PHP/非静态文件网站,letsencrypt certbot-auto 的 "webroot-path"应该是什么?

ios - 从 Phonegap (SSL/TLS) 错误向 IIS 发送请求