象这种情况一般是什么错误,我安装的python是2.7
发布于 12 年前 作者 yakczh 3247 次浏览 最后一次编辑是 9 年前
> bson[@0](/user/0).1.5 install /srv/mtee/node_modules/meteor/node_modules/mongodb/node_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  =
=                                                                              =
================================================================================
node-gyp clean
node-gyp configure build
gyp ERR! configure error Error: Command failed: Unknown option: --
gyp ERR! configure error usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
gyp ERR! configure error Try `python -h' for more information.
gyp ERR! configure error 
gyp ERR! configure error     at ChildProcess.exithandler (child_process.js:536:15)
gyp ERR! configure error     at ChildProcess.EventEmitter.emit (events.js:91:17)
gyp ERR! configure error     at maybeClose (child_process.js:634:16)
gyp ERR! configure error     at Process._handle.onexit (child_process.js:676:5)
gyp ERR! configure error     at process.startup.processMakeCallback.process._makeCallback (node.js:238:20)
gyp ERR! not ok 
gmake: *** [node_gyp] 错误 1
回到顶部