我按照說明創建了一個標準項目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