nodeJs启动的时候:Error: Cannot find module '../build/Release/bson'的解决办法
2015-07-15 10:36
901 查看
{ [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') ,重新运行。
相关文章推荐
- [LeetCode] Delete Node in a Linked List 删除链表的节点
- NodeMCU上通过DS18b20采集室温
- [LeetCode] Delete Node in a Linked List
- LeetCode "Delete Node in a Linked List"
- LeetCode OJ 之 Delete Node in a Linked List (删除链表中的结点)
- hadoop 在搭建分布式时遇到DataNode,NameNode,JobTracker,TaskTracker用jps查看无法启动解决办法
- Reverse Nodes in k-Group
- Reverse Nodes in k-Group
- LeetCode题解——Remove Nth Node From End of List
- 3.osg中的CallBack回调、NodeVisitor与鼠标键盘的交互
- 美团酒店Node全栈开发实践
- NodeJs--Express新建项目
- Node:线段树的单点更新
- 【Count Complete Tree Nodes】cpp
- LintCode Insert a Node in a Binary Search Tree 在二叉查找树中插入节点
- WebSockets in Node.js for Windows 7
- ROS学习笔记10 - 编写编译和检验Service Node
- node.js不得不说的12点内容
- Node:RMQ问题之ST算法
- nodeJS代码实现计算交社保是否合适