运行 Jugernaut 时出错
我刚刚在 Windows 服务器(64 位)上安装了 NodeSJ 和 Juggernaut(是的,还有 redis),
但它不起作用......通过评估,这似乎只是安装和运行。
这是我得到的错误:
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'optimist'
at Function._resolveFilename (module.js:334:11)
at Function._load (module.js:279:25)
at Module.require (module.js:357:17)
at require (module.js:368:17)
at Object.<anonymous> (C:\Node\application\juggernaut\server.js:2:12)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
有一个吗?
I just installed NodeSJ and Juggernaut (yes, and redis too) on windows server (64 bits)
It is not working ... It seems, by the evaluations, that is just install and run.
This is the error I get:
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'optimist'
at Function._resolveFilename (module.js:334:11)
at Function._load (module.js:279:25)
at Module.require (module.js:357:17)
at require (module.js:368:17)
at Object.<anonymous> (C:\Node\application\juggernaut\server.js:2:12)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
Any one?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当我在克隆主宰 git 存储库后尝试运行“nodejs server.js”时,我在 ubuntu 12.10 下遇到了同样的问题。
最终我用 npm 安装了 juggernaut (“npm install -g juggernaut”),现在我可以成功运行“nodejs /usr/local/lib/node_modules/juggernaut/server.js”(路径可能取决于你的 npm 模块安装)。
I had the same problem under ubuntu 12.10 when I tried to run "nodejs server.js" after cloning the juggernaut git repo.
Eventually I installed juggernaut with npm ("npm install -g juggernaut") and now I can successfully run "nodejs /usr/local/lib/node_modules/juggernaut/server.js" (path may depend on your npm module installation).