nodeJs启动的时候:Error: Cannot find module '../build/Release/bson'的解决办法
2017-09-09 10:50
1226 查看
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' } js-bson: Failed to load c++ bson extension, using pure JS version
头两行说的是没有发现bson模块。好办我们立马安装:
npm install bson
然后将E:\project\nodejs-demo\node_modules\connect-mongodb\node_modules\mongodb\node_modules\bson\ext\index.js中的bson = require('../build/Release/bson')改成bson = require('bson') ,重新运行。
相关文章推荐
- nodeJs启动的时候:Error: Cannot find module '../build/Release/bson'的解决办法
- mongodb 报错 Error: Cannot find module '../build/Release/bson'解决办法
- window下node提示Error: Cannot find module "***"的解决办法
- 关于webpack项目中报错:Error: Cannot find module 'webpack/lib/node/NodeTemplatePlugin' 的解决办法
- Error: Cannot find module '../build/Release/canvas'
- Error: Cannot find module './build/Release/DTraceProviderBindings'
- Error“Cannot change version of project facet Dynamic web module to 2.5”导致Tomcat无法启动解决办法
- [乐意黎]Nodejs采集程序抛Error: Cannot find module 'superagent' 及 Cannot find module 'superagent' 等的解决方法
- configure: error: Cannot find ldap libraries in /usr/lib 解决办法
- 安装了nodejs后在命令行运行npm报错:Error: Cannot find module 'internal/util/types'
- Cannot find module with tag 'Android NDK Profiler' in import path解决办法
- nodejs express 启动报错:Error: Cannot find module 'xxx'
- Android NDK: jni/Android.mk: Cannot find module with tag 'cocos2dx' in import path解决办法
- Cannot find module '@angular-devkit/core' 的解决办法
- Error- Cannot find module 'gulp-clone'问题的解决
- 在Linux下安装nodejs遇到Cannot find module 'npmlog'问题的解决方法
- 安装qtceator后无法启动help插件 Qt编译错误:cannot find -lGL 解决办法
- 编译PHP时候报错:configure: error: Cannot find libmysqlclient under /usr 解决
- configure: error: Cannot find ldap libraries in /usr/lib 解决办法
- node.js报错:Cannot find module 'ejs'的解决办法