bcrypt is breaking my meteor application, how do I fix it?

前端 未结 3 430
醉酒成梦
醉酒成梦 2020-12-28 08:43

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

I installed Meteor\'s accounts-password module and it worked locally, but broke my app whe

相关标签:
3条回答
  • 2020-12-28 09:21

    Rebuilding bycrypt from souce fixed the problem of mine

    npm rebuild bcrypt --build-from-source
    
    0 讨论(0)
  • 2020-12-28 09:23

    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
    

    then install it again:

    npm install bcrypt
    
    0 讨论(0)
  • 2020-12-28 09:39

    As of Meteor 1.0.5 (and this also applies to the forthcoming 1.1), we have not yet gone through the full testing, validation, and QA process with Node 0.12. I would recommend sticking with Node 0.10 until that point. While it is likely that it will mostly work, it's possible that some core changes will be necessary, and as you've seen, binary packages built against the 0.10 ABI don't work with 0.12.

    0 讨论(0)
提交回复
热议问题