Failed to load c++ bson extension, using pure JS version
发布于 5 年前 作者 maschzh 3391 次浏览 来自 问答

请问各位大神帮忙看下,node -v 4.2.1 启用node app.js时以下错误,是否有人遇到过类似的问题,怎么解决的 [Error: Module did not self-register.] js-bson: Failed to load c++ bson extension, using pure JS version /workspace/u9blogsApp/node_modules/bcrypt/node_modules/bindings/bindings.js:79 throw e ^ Error: Module did not self-register. 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 (/workspace/u9blogsApp/node_modules/bcrypt/node_modules/bindings/bindings.js:74:15) at Object.<anonymous> (/workspace/u9blogsApp/node_modules/bcrypt/bcrypt.js:3:35) at Module._compile (module.js:435:26) at Object.Module._extensions…js (module.js:442:10)

2 回复

试试 rm -fr node_modules 然后重装

@HarryHong 谢谢!我试试

回到顶部