bcrypt破坏了我的流星应用程序,我该如何解决? [英] bcrypt is breaking my meteor application, how do I fix it?

查看:59
本文介绍了bcrypt破坏了我的流星应用程序,我该如何解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定这是应该是stackoverflow还是serverfault问题.

I wasn't sure if this should be a stackoverflow or serverfault question.

我安装了Meteor的accounts-password模块,该模块在本地运行,但是在部署到服务器时破坏了我的应用程序.这是独家新闻:

I installed Meteor's accounts-password module and it worked locally, but broke my app when deployed to the server. Here's the scoop:

我正在OSX上本地运行最新的Meteor 1.0.5(刚刚完全更新了OS) 使用--architecture os.linux.x86_64构建 部署到Ubuntu 14.04.2 LTS x86_64(刚刚更新) 运行nodejs v0.12.1(新构建) 使用Nginx v1.4.0投放应用

I'm running the latest Meteor 1.0.5 locally on OSX (OS just fully updated) Building with --architecture os.linux.x86_64 Deploying to Ubuntu 14.04.2 LTS x86_64 (just updated) Running nodejs v0.12.1 (freshly built) Serving app with nginx v1.4.0

仍然得到:

/home/secrethistory/bundle/programs/server/node_modules/fibers/future.js:245
                                            throw(ex);
                                                  ^
Error: Module did not self-register.
    at Error (native)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at bindings (/home/secrethistory/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt/node_modules/bindings/bindings.js:74:15)
    at Object.<anonymous> (/home/secrethistory/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt/bcrypt.js:3:35)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)

接下来有什么提示或地方吗?

Any tips or places to look next?

推荐答案

bcrypt模块依赖于平台(作为光纤),因此您需要在服务器中解压缩捆绑包后删除软件包:

The bcrypt module is platform dependant (as fibers), so you need to remove the package after decompressing the bundle in your server:

rm -R path/to/bcrypt

然后重新安装:

npm install bcrypt

这篇关于bcrypt破坏了我的流星应用程序,我该如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆