2013-02-27 31 views
2

嗨我想編譯一個node_modules作爲發佈模式,但我無法成功配置爲發佈模式。node-gyp配置爲發佈模式

我跑node-gyp configure;在configure.gypi產生

# Do not edit. File was generated by node-gyp's "configure" step { 
    "target_defaults": { 
     "cflags": [], 
     **"default_configuration": "Debug",** 
     "defines": [], 
     "include_dirs": [], 
     "libraries": [] }, 

-DBUILDTYPE=ReleaseBUILDTYPE=Release但沒有成功

回答

2

默認嘗試應該是Release

嘗試node-gyp configure --release

+1

This Works,thanks!它並不總是Release,可能是Debug,所以你必須指定--release。我認爲調試是當你從開源調試開始構建節點。 – Calin 2014-04-18 14:54:38