2012-10-16 106 views
2

我有nodejs与mongodb数据库运行,我试图安装javascript驱动程序mongodb本机..当我尝试“npm install -g Mongodb --mongodb:native”在Windows服务器2008上安装javascript驱动程序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 

> [email protected] 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 = 

=                    = 

================================================================================ 

[email protected] C:\Users\xxx\AppData\Roaming\npm\node_modules\mongodb 
└── [email protected] 

C:\Users\xxx>npm ls 
C:\Users\xxx 
└── (empty) 
+0

如果你不使用bson C++扩展,它工作吗? – jsalonen

+0

我该怎么做?有另外一个命令吗? – user1731864

+0

如果您只是调用'npm install -g Mongodb',会发生什么情况? – jsalonen

回答

0

我可以证实,司机只被测试在Windows 7上,而不是W2K8所以它不是一个惊喜,它不工作。

如果您可以将调试信息上传到Node MongoDB Google Group进行进一步分析和测试,将不胜感激。这个问题可以在那里得到更好的跟踪。

相关问题