2012-10-16 149 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進行進一步分析和測試,將不勝感激。這個問題可以在那裏得到更好的跟蹤。

相關問題