2013-02-27 48 views
0

我嘗試編譯模塊,通過默認版本中,我設定在buinding.gyp的節點GYP和有約束力的,不GYP default_configuration

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

但始終我是BuildType =「調試」

gyp info it worked if it ends with ok 
gyp info using [email protected] 
gyp info using [email protected] | 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 

回答

0

檢查的package.json scripts

,如果你有在那裏--debug,這將迫使調試版本反正。

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

刪除--debug應該修復它。