如何消除nodeclub启动时的Failed to load c++ bson extension, using pure JS version提示
Failed to load c++ bson extension, using pure JS version NodeClub listening on port 3000 in development mode God bless love… You can debug your app with http://localhost:3000
启动报 Failed to load c++ bson extension, using pure JS version 为什么会有这个提示呢?用什么方法可以消除这个提示呢?
6 回复
@ravenwang 看了你谷歌的首条信息http://stackoverflow.com/questions/21656420/failed-to-load-c-bson-extension 其中讲到的以下的方法都试过了,还是不行。 1、 rm -rf node_modules npm cache clean npm install
2、 the file ‘node_modules/mongoose/node_modules/mongodb/node_modules/bson/ext/index.js’ bson = require(‘…/build/Release/bson’); So just change it to bson = require(‘bson’);
3、 npm install bson and then npm update