Failed to add PhoneGap plugin due to Syntax Error

情到浓时终转凉″ 提交于 2019-12-13 04:54:31

问题


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;)


回答1:


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

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



来源:https://stackoverflow.com/questions/20200998/failed-to-add-phonegap-plugin-due-to-syntax-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!