我按照使用IBM API Connect为Strongloop创建标准项目的说明进行操作。
在“启动您的 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)