简体   繁体   English

模块版本不匹配

[英]Module version mismatch

bcrypt seems like has mismatch with node. bcrypt 似乎与节点不匹配。

my node version is 4.2.1我的节点版本是 4.2.1

Error: Module version mismatch. Expected 46, got 14.
    at Error (native)
    at Object.Module._extensions..node (module.js:460:18)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at bindings (/opt/app/app/node_modules/bcrypt/node_modules/bindings/bindings.js:76:44)
    at Object.<anonymous> (/opt/app/app/node_modules/bcrypt/bcrypt.js:3:35)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/opt/app/app/controllers/account.js:10:14)
    at Module._compile (module.js:435:26)

You (typically) have to recompile addons when switching between "major" versions of node (eg v0.10, v0.12, 4.0, 5.0, etc).在节点的“主要”版本(例如 v0.10、v0.12、4.0、5.0 等)之间切换时,您(通常)必须重新编译插件。 So an npm rebuild should do just this for you.所以npm rebuild应该为你做这件事。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AWS Lambda 节点模块版本不匹配 - AWS Lambda Node module version mismatch 错误:找到版本4的模块的元数据版本不匹配,预期为3 - Error: Metadata version mismatch for module found version 4, expected 3 创建浏览器构建时,模块的元数据版本不匹配 - Metadata version mismatch for module while creation a browser build 错误错误:模块ngx-swiper-wrapper的元数据版本不匹配,发现版本4,预期为3 - ERROR in Error: Metadata version mismatch for module ngx-swiper-wrapper found version 4, expected 3 错误:模块…/ ngx-masonry / ngx-masonry.d.ts的元数据版本不匹配,找到了版本4,预期为3 - Error: Metadata version mismatch for module …/ngx-masonry/ngx-masonry.d.ts, found version 4, expected 3 节点模块“angular2-multiselect-dropdown”的元数据版本不匹配错误 - ERROR in Metadata version mismatch for module for the node module "angular2-multiselect-dropdown " typescript 版本不匹配 - typescript version mismatch IndexedDBShim polyfill版本不匹配 - IndexedDBShim polyfill version mismatch 模块/node_modules/time-ago-pipe/time-ago-pipe.d.ts的元数据版本不匹配,找到了版本4,预期为3 - Metadata version mismatch for module /node_modules/time-ago-pipe/time-ago-pipe.d.ts, found version 4, expected 3 ssl 版本或密码不匹配 ExpressJS - ssl version or cipher mismatch ExpressJS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM