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