node-gyp和binding,gyp not default_configuration

时间:2013-02-27 18:33:50

标签: node.js node-gyp

我正在尝试将模块编译为默认发布,我设置为buinding.gyp

  'target_defaults': {
    'default_configuration': 'Release'
   },

但我总是得到BuildType =“Debug”

gyp info it worked if it ends with ok
gyp info using node-gyp@0.8.4
gyp info using node@0.8.12 | linux | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Debug', '-C', 'build' ]
make: Entering directory `/home/ammarch/colaboration/node-webworker-threads/build'
make: Nothing to be done for `all'.
make: Leaving directory `/home/ammarch/colaboration/node-webworker-threads/build'
gyp info ok 

1 个答案:

答案 0 :(得分:0)

检查package.json scripts

如果你有--debug,那么无论如何都会强制进行调试构建。

"scripts": {
  "install": "node-gyp --debug rebuild",
  "test": "mocha tests"
},

删除--debug应该修复它。