简体   繁体   English

Phonegap CLI无法识别插件命令

[英]Phonegap CLI will not recognise plugin command

I'm trying to using plugin command at Phonegap CLI. 我正在尝试在Phonegap CLI上使用插件命令。 I have been using create 'command to create projects and its fine so I assume my config of paths etc is ok? 我一直在使用create'命令来创建项目,它很好,所以我假设我的路径等配置还可以吗?

plugin is not recognised as an internal or external command. 无法将插件识别为内部或外部命令。 (I'm trying to install sqlite plugin) (我正在尝试安装sqlite插件)

Also 'phonegap'is not recognised at command prompt - I can use create command in command prompt from bin directory in phonegap directory. 另外,在命令提示符下无法识别“ phonegap”-我可以在phonegap目录中bin目录的命令提示符中使用create命令。

Any ideas where I've gone wrong? 有什么想法我做错了吗?

First, you will need to install NodeJS and then Phonegap (through nodeJS). 首先,你需要安装的NodeJS ,然后PhoneGap的(通过的NodeJS)。

To install Phonegap, type, in a regular cmd promt (once NodeJS is installed) 要安装Phonegap,请在常规cmd程序中键入(一旦安装了NodeJS)

npm install -g phonegap

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM