我按照说明创建了一个标准项目Strongloop与IBM API Connect。Strongloop/Loopback - 开始 - 服务管理器启动失败
在 “启动API” 的步骤,开始按钮点击时,该API没有启动。
在我的控制台,有此错误消息:
Unhandled rejection Error: Service manager failed to start.
Please review /Users/edouardm/.apiconnect/strong-pm/start.log for details.
该文件指出:
loopback-connector-sqlite3 must be installed to use the sql backend.
Use the --json-file-db option if you are unable to install loopback-connector-sqlite3.
因此,我在本地安装(并全局)这个组件,但同样的错误是仍在发生。
堆栈跟踪不给我任何线索要么...
at ChildProcess.<anonymous> (/usr/local/lib/node_modules/apiconnect/node_modules/apiconnect-cli-pm/lib/start/pm.js:122:23)
at ChildProcess.g (events.js:260:16)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
at Process.onexit (/usr/local/lib/node_modules/apiconnect/node_modules/apiconnect-cli-edit/node_modules/apim-ui/node_modules/loopback-workspace/node_modules/loopback/node_modules/continuation-local-storage/node_modules/async-listener/glue.js:188:31)
尝试新版本的API Connect,应该已解决此问题。 – Rick