错误添加或删除在科尔多瓦插件/电话差距 [英] Error adding or deleting plugins in cordova / phone gap
问题描述
我科尔多瓦3.3安装(3.2,具有同样的错误),当我想添加或删除插件,系统显示这个错误:
I have cordova 3.3 installed (in 3.2, have the same error) and when i want to add or remove a plugin the system show this error:
>>cordova plugin add org.apache.cordova.network-information
Fetching plugin from "org.apache.cordova.network-information"...
Starting installation of "org.apache.cordova.network-information" for android
/usr/local/lib/node_modules/cordova/node_modules/q/q.js:126
throw e;
^
SyntaxError: Unexpected token
我检查路径和是正确的:
I check the path and is correct:
echo $PATH
/usr/local/bin:/Users/manuelcm/Documents/sdk_android/platform-tools:
/Users/manuelcm/Documents/sdk_android/tools:/usr/local/apache-ant/bin:
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
在我第一次安装我安装的插件和目录出现在/插件插件/而打造的iOS后才去的设备插件出现在/平台/ IOS / WWW /插件,这是我想重新安装插件的原因
In my first installation i install the plugins and the plugins directories appear in /plugins/ but after build in iOS only de device plugin appear in /platforms/ios/www/plugins this is the reason that I want to reinstall the plugins.
任何人都知道这是为什么发生,如何解决呢?
Anyone know why this is happening and how to resolve it?
推荐答案
我终于解决了这个问题,首先我创建了本地磁盘的项目。
问题依然存在,那么我在项目名称的第一个字母创建的项目,大写,和一切工作正常。是的,这似乎令人难以置信,但这是解决方案。
Finally I solved the problem, first I created the project in local disk. The problem persisted, then I created the project with uppercase in the first letter of project name, and all works fine. Yes, it seems incredible, but this was the solution.
这篇关于错误添加或删除在科尔多瓦插件/电话差距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!