node_modules/bcrypt/node_modules /绑定/ bindings.js:83

spa*_*sey 2 module bcrypt node.js sails.js

我有这个问题..有人有个主意......这是什么意思.?想在我的本地机器上启动我的应用程序.但是他的工作方式很糟糕.我在这里遇到模块或笔记和bcrypt?有人有想法解决这个问题以及为什么会出现这个问题.

Space-Odysseys-Mac-Pro:www cyberspace$ sails lift

info: Starting app...

/Users/cyberspace/Desktop/www/node_modules/bcrypt/node_modules/bindings/bindings.js:83
        throw e
              ^
Error: dlopen(/Users/cyberspace/Desktop/www/node_modules/bcrypt/build/Release/bcrypt_lib.node, 1): no suitable image found.  Did find:
    /Users/cyberspace/Desktop/www/node_modules/bcrypt/build/Release/bcrypt_lib.node: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x03
    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 (/Users/cyberspace/Desktop/www/node_modules/bcrypt/node_modules/bindings/bindings.js:76:44)
    at Object. (/Users/cyberspace/Desktop/www/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)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object. (/Users/cyberspace/Desktop/www/config/passport.js:5:10)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
Space-Odysseys-Mac-Pro:www cyberspace$ 

这是我的终端在mac os上的命令行工具. - 当有人提示或以这种方式解决并解决这个问题时,我很高兴.

msc*_*dex 6

0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x03 表示Linux共享库.

您需要在本地计算机上重新安装您的依赖项(npm install)(您可以node_modules先完全删除,以确保没有遗留任何残余),以便bcrypt为正确的平台编译.