Looopback应用程序生产服务器问题

时间:2019-04-11 20:48:59

标签: node.js loopbackjs strongloop loopback

我正在开发回送应用程序。我尝试使用Strong-pm部署到生产服务器。应用程序成功在我的本地服务器上工作。但是应用程序未启动Strongloop生产服务器。在日志中写入以下错误消息。我该如何解决

Error: Cannot find module './lib/websocket'
2019-04-11T20:37:43.582Z pid:17100 worker:152     at Function.Module._resolveFilename (module.js:547:15)
2019-04-11T20:37:43.586Z pid:17100 worker:152     at Function.Module._load (module.js:474:25)
2019-04-11T20:37:43.587Z pid:17100 worker:152     at Module.require (module.js:596:17)
2019-04-11T20:37:43.587Z pid:17100 worker:152     at Module.newFunc [as require] (/usr/local/lib/node_modules/strong-pm/node_modules/appmetrics/lib/aspect.js:101:26)
2019-04-11T20:37:43.587Z pid:17100 worker:152     at require (internal/module.js:11:18)
2019-04-11T20:37:43.587Z pid:17100 worker:152     at Object.<anonymous> (/var/lib/strong-pm/svc/3/work/45626f29010507b394e0dc82e283c1d279dd80f5.1555011277446/node_modules/ws/index.js:3:19)
2019-04-11T20:37:43.588Z pid:17100 worker:152     at Module._compile (module.js:652:30)
2019-04-11T20:37:43.588Z pid:17100 worker:152     at Object.Module._extensions..js (module.js:663:10)
2019-04-11T20:37:43.588Z pid:17100 worker:152     at Module.load (module.js:565:32)
2019-04-11T20:37:43.588Z pid:17100 worker:152     at tryModuleLoad (module.js:505:12)
2019-04-11T20:37:43.589Z pid:17100 worker:152     at Function.Module._load (module.js:497:3)
2019-04-11T20:37:43.589Z pid:17100 worker:152     at Module.require (module.js:596:17)
2019-04-11T20:37:43.591Z pid:17100 worker:152     at Module.newFunc [as require] (/usr/local/lib/node_modules/strong-pm/node_modules/appmetrics/lib/aspect.js:101:26)
2019-04-11T20:37:43.591Z pid:17100 worker:152     at require (internal/module.js:11:18)
2019-04-11T20:37:43.592Z pid:17100 worker:152     at Server.init (/var/lib/strong-pm/svc/3/work/45626f29010507b394e0dc82e283c1d279dd80f5.1555011277446/node_modules/engine.io/lib/server.js:108:27)
2019-04-11T20:37:43.592Z pid:17100 worker:152     at new Server (/var/lib/strong-pm/svc/3/work/45626f29010507b394e0dc82e283c1d279dd80f5.1555011277446/node_modules/engine.io/lib/server.js:65:8)

0 个答案:

没有答案