question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to load c++ bson extension

See original GitHub issue

tried following a yo generator install of keystone but getting this error

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

I only get the server running when I stop and restart the terminal - any thoughts on removing the error

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:23 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
fridayscommented, Dec 2, 2015

Just upgraded to the master branch, the error is gone.

In package.json:

"keystone": "https://github.com/keystonejs/keystone.git",

Then

rm -rf node_modules
npm install
3reactions
manuel-alcocercommented, Feb 21, 2017

Ainsss…

I think is not necessary ninja tricks for solving this problem.

After creating your keystone project, install npm-check-updates for all users:

user@debian:~/myproject/my-site$ sudo npm install -g npm-check-updates

Then update your site packages.json:

user@debian:~/myproject/my-site$ npm-check-updates -u

And finally update all packages:

user@debian:~/myproject/my-site$ npm install

One last thing. If you chose ‘jade’ during deployment of keystone, maybe you will need to install ‘jade’ explicitly:

user@debian:~/myproject/my-site$ npm install jade --save

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to load c++ bson extension - Stack Overflow
I just resolved that. bson = require('bson'); and then install the bson module using npm. @DouglasFerguson Not really.
Read more >
Failed to load c++ bson extension, using pure JS version ...
I get this error js-bson: Failed to load c++ bson extension, using pure JS version nodejs v0.11.13, latest osx. It looks that the...
Read more >
Remove Failed to load c++ bson extension message from ...
This error is generally results from when installing the Mongoose Module via the Node Package Manager (npm) it does not build the BSON...
Read more >
Manual Deployment error: js-bson: Failed to load c++ bson ...
Seems it happens when the binary version in the npm package doesn't match the target OS. But I'm curious if that error is...
Read more >
Cannot find module '../build/Release/bson'] code ... - SyntaxFix
[Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' } js-bson: Failed to load c++ bson extension, using pure JS version.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found