与AWSBox节点bcrypt无效ELF头 [英] Invalid ELF header with node bcrypt on AWSBox

查看:287
本文介绍了与AWSBox节点bcrypt无效ELF头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我玩awsbox和部署我的应用程序显示了这些错误:

I'm playing with awsbox and deploying my app shows these errors:

    /home/app/code/node_modules/mongoose-troop/node_modules/bcrypt/node_modules/bindings/bindings.js:79
            throw e
                  ^
    Error: /home/app/code/node_modules/mongoose-troop/node_modules/bcrypt/build/Release/bcrypt_lib.node: invalid ELF header
        at Object.Module._extensions..node (module.js:485:11)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:312:12)
        at Module.require (module.js:362:17)
        at require (module.js:378:17)
        at bindings (/home/app/code/node_modules/mongoose-troop/node_modules/bcrypt/node_modules/bindings/bindings.js:74:15)
        at Object.<anonymous> (/home/app/code/node_modules/mongoose-troop/node_modules/bcrypt/bcrypt.js:1:97)
        at Module._compile (module.js:449:26)
        at Object.Module._extensions..js (module.js:467:10)
        at Module.load (module.js:356:32)
    warn: Forever detected script exited with code: 1
    warn: Forever restarting script for 1 time

不知道如何解决?

Any idea how to resolve this?

推荐答案

不知道什么是最好的答案可能是,但我确实发现一些后提一些有关的x86和64位的问题。我删除了猫鼬兵模块,并呼吁NPM从awsbox控制台内安装和这似乎已经做到了。不知道如何将尽可能努力为部署到awsbox虽然。可能无法正常工作

Not sure what the best answer might be but I did find some post mentioning something about x86 vs 64 bit issues. I deleted the mongoose-troop module and called npm install from within the awsbox console and that seemed to have done it. Not sure how that will work as far as deploying to awsbox though. Might not work

这篇关于与AWSBox节点bcrypt无效ELF头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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