我有运行mongodb数据库的nodejs,我试图安装javascript驱动程序mongodb-native ..当我尝试" npm install -g mongodb --mongodb:native"
我尝试在Windows 7计算机上安装相同的配置,它运行正常。知道为什么它不能与Windows Server 2008一起使用吗?
这是我从npm install命令获得的输出:
npm http GET https://registry.npmjs.org/mongodb
npm http GET https://registry.npmjs.org/mongodb
npm http GET https://registry.npmjs.org/mongodb
npm http GET https://registry.npmjs.org/bson/0.1.5
npm http GET https://registry.npmjs.org/bson/0.1.5
npm http GET https://registry.npmjs.org/bson/0.1.5
> bson@0.1.5 install C:\Users\xxx\AppData\Roaming\npm\node_modules\mongodb\no
de_modules\bson
> node install.js || (exit 0)
================================================================================
= =
= Attempting to build bson c++ extension =
= Windows: no build will be attempted as binaries are prepackaged =
= Unix: on failure the package will still install without the C++ extension =
= =
================================================================================
mongodb@1.1.11 C:\Users\xxx\AppData\Roaming\npm\node_modules\mongodb
└── bson@0.1.5
C:\Users\xxx>npm ls
C:\Users\xxx
└── (empty)
答案 0 :(得分:0)
我可以确认驱动程序仅在Windows 7上进行过测试,而不是W2K8,因此它不起作用并不奇怪。
如果您可以将调试信息上传到Node MongoDB Google Group以进行进一步分析和测试,我们将不胜感激。可以在那里更好地跟踪问题。