Strongloop/Loopback - 开始 - 服务管理器启动失败

Strongloop/Loopback - Get Started - Service manager failed to start

我按照说明使用 IBM API Connect.

Strongloop 创建了一个标准项目

Link to the tutorial

在“开始你的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.

因此,我在本地(然后在全局)安装了这个组件,但仍然出现同样的错误。

Stack Trace 也没有给我任何线索...

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)

我只是 运行 示例,并没有 运行 涉及您提到的问题。以下是一些可能对您有所帮助的数据。

我的 nodenpmapic 版本:

  • 节点版本:4.1.2

  • npm 版本:2.14.4

  • apic 版本:1.0.2

仔细检查您的模型是否正在使用内存数据库,并且您在进行更改后单击了屏幕右角的保存图标。