由于语法错误,无法添加PhoneGap插件 [英] Failed to add PhoneGap plugin due to Syntax Error

查看:160
本文介绍了由于语法错误,无法添加PhoneGap插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



命令:


phonegap本地插件添加 https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git


执行:


[phonegap]添加插件: https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git


然后错误:


/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/plugman/node_modules/xcode/lib/parser/pbxproj.js:2654
throw new this.SyntaxError(
^
语法错误:预期为/ *,=或[A-Za-z0-9_],但发现。。


看起来像 node.js 解析器会抛出一个错误,因为它遇到了意想不到的



感谢;)

解决方案

您不是孤独的,我猜测:)看起来像是CLI中的错误



https://github.com/phonegap/phonegap-cli/issues/188


I am trying to add a plugin to my PhoneGap project and it fails with a Syntax Error.

Command:

phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git

Executing:

[phonegap] adding the plugin: https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git

And then error:

/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/plugman/node_modules/xcode/lib/parser/pbxproj.js:2654 throw new this.SyntaxError( ^ SyntaxError: Expected "/*", "=" or [A-Za-z0-9_] but "." found.

Looks like node.js parser throws an error because it encounter an unexpected .. Any ideas on what causing it or how I can debug it further?

Thanks;)

解决方案

You are not alone, I guess :) Looks like a bug in CLI

https://github.com/phonegap/phonegap-cli/issues/188

这篇关于由于语法错误,无法添加PhoneGap插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆