Keystone, Start, Failed to Load Bson

Posted Die feuchter Einsamkeit

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Keystone, Start, Failed to Load Bson相关的知识,希望对你有一定的参考价值。

If you have installed the Keystone.js, and properly installed mongodb, but when tried to start the keystone thought command node keystone.js, you might get the error

{ [Error: Cannot find module ../build/Release/bson] code: MODULE_NOT_FOUND } 
  js-bson: Failed to load c++ bson extension, using pure JS version

Once you have this problem, you could open the package.json inside node_modules/keystone/package.json, then change the line of mongoose to version 4.4, reinstall the moongose, it should be okay then.

以上是关于Keystone, Start, Failed to Load Bson的主要内容,如果未能解决你的问题,请参考以下文章