Failed to load c++ bson extension
See original GitHub issuetried 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:
- Created 9 years ago
- Comments:23 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just upgraded to the master branch, the error is gone.
In package.json:
Then
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