问题描述
我不确定这应该是 stackoverflow 还是 serverfault 问题.
I wasn't sure if this should be a stackoverflow or serverfault question.
我安装了 Meteor 的帐户密码模块并且它在本地工作,但是在部署到服务器时破坏了我的应用程序.这是独家新闻:
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(操作系统刚刚完全更新)使用 --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_64Deploying 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 破坏了我的流星应用程序,我该如何修复它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!