Strongloop错误:无法找到模块'选项'

时间:2022-07-13 12:19:31

I wanted to deploy my app on remote Linux server. I am using loopback and I wanted to follow instruncions in docs. Ive build an app using arc, started proces manager on remote host and deployed it using slc deploy http://my.host. Deploy was successful, but process manager started to throw this error:

我想在远程Linux服务器上部署我的应用程序。我正在使用环回,我想跟随文档中的instruncions。我使用arc构建了一个app,在远程主机上启动了proces manager并使用slc deploy http://my.host部署它。部署成功,但进程管理器开始抛出此错误:

module.js:340
throw err;
      ^
Error: Cannot find module 'options'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/home/arthdesigns/.strong-pm/svc/2/work/d3a01b1e3e31ee5561e69ef7aa072531cc581fc2.1454877049098/node_modules/sse/lib/sse.js:1:77)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)

Its strange, because on my workspace everything works fine. Anyone know solution?

很奇怪,因为在我的工作区一切正常。谁知道解决方案?

1 个解决方案

#1


2  

Okey, I found solution. I just went to this sse.js and installed dependencies via npm i and npm i node-options.

哦,我找到了解决方案。我刚刚去了这个sse.js并通过npm i和npm i node-options安装了依赖项。

But my second question is: why it worked on windows, but on linux I had to install it manualy?

但我的第二个问题是:为什么它在Windows上工作,但在linux上我必须手动安装它?

#1


2  

Okey, I found solution. I just went to this sse.js and installed dependencies via npm i and npm i node-options.

哦,我找到了解决方案。我刚刚去了这个sse.js并通过npm i和npm i node-options安装了依赖项。

But my second question is: why it worked on windows, but on linux I had to install it manualy?

但我的第二个问题是:为什么它在Windows上工作,但在linux上我必须手动安装它?