我刚刚开始学习IBM Mobile First Platform (https://mfp.help/canteenpos-hybrid-1-day-pot/)的教程课程,但是我的适配器出现了问题。
在将适配器推送到本地MFP服务器后,我尝试使用"mfp invoke“命令调用适配器。然而,我一直收到这个错误消息:
C:\workspaces\canteen\canteenPOSwl>mfp invoke
Invoking 'getMenu', the only procedure available for 'canteenAdapter' adapter.
? Enter the comma-separated parameters:
undefined:1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.
^
SyntaxError: Unexpected token <
at Object.parse (native)
at IncomingMessage.<anonymous> (C:\Program Files\ibm\MobileFirst-CLI\mobilefirst-cli\lib\invoke.js:301:38)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:944:16
at process._tickDomainCallback (node.js:486:13)我无法调用适配器的实验:https://mfp.help/2015/10/04/lab-7-3/
发布于 2015-12-11 17:53:52
https://stackoverflow.com/questions/34174722
复制相似问题