跳到主要内容
CNode

如何消除nodeclub启动时的Failed to load c++ bson extension, using pure JS version提示

问答
Nnqdy666发布于 11 年前最后回复 11 年前
666960

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)

C
CocaCola183#611 年前

楼主也有洁癖啊……找到输出这句话的位置,然后注释掉就好了,我就一般都直接忽视了……

N
nqdy666#511 年前
引用 JacksonTian可以无视。

@JacksonTian 好吧

J
JacksonTian#411 年前

可以无视。

B
booxood#311 年前

我也有。。。

N
nqdy666#211 年前
引用 ravenwanghttps://www.google.com/search?q=Failed+to+load+c%2B%2B+bson+extension%2C+using+pure+JS+version&o...

@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

参与回复

登录后即可参与回复。登录