错误信息如下:
bson@0.2.2 install F:\MyNodeTest\microblog\node_modules\mongodb\node_modules\bson(node-gyp rebuild 2> builderror.log) || (exit 0)
npm ERR! Error: spawn ENOENT
npm ERR! at errnoException (child_process.js:980:11)
npm ERR! at Process.ChildProcess._handle.onexit (child_process.js:771:34)
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-@googlegroups.com
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! cwd F:\MyNodeTest\microblog
npm ERR! node -v v0.10.17
npm ERR! npm -v 1.3.8
npm ERR! syscall spawn
npm ERR! code ENOENT
npm ERR! errno ENOENTnpm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! F:\MyNodeTest\microblog\npm-debug.log
npm ERR! not ok code 0
求帮助,谢谢!!
可以尝试一下
再不行就可能是Internet连接的问题了。
另, 这里的mongodb不是真正的database。只是一个nodejs的扩展库,让nodejs开发的app方便对MongoDB进行CRUD操作。相同的库还有mongoose, mongoskin,他们都比mongodb更有好用。