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)
如果你不使用bson C++擴展,它工作嗎? – jsalonen
我該怎麼做?有另外一個命令嗎? – user1731864
如果您只是調用'npm install -g Mongodb',會發生什麼情況? – jsalonen