【问题标题】:How can node-gyp build be made verbose?node-gyp build 如何变得冗长?
【发布时间】:2013-03-02 03:43:55
【问题描述】:

我希望在构建节点绑定时看到正在使用的编译器和链接器标志。我怎样才能让node-gyp build 以详细模式运行以实现这一目标。 (类似于make VERBOSE=1 for cmake

【问题讨论】:

  • 您是否使用npm install --verbose ... 进行安装?

标签: node-gyp


【解决方案1】:

试试

node-gyp rebuild --verbose

【讨论】:

    【解决方案2】:

    make V=1 帮助我构建详细的V8。我没试过node.js

    我不太了解gyp,但我知道它在Makefile 的请求下写信给out/Makefile

    # The V=1 flag on command line makes us verbosely print command lines.
    ifdef V
      quiet=
    else
      quiet=quiet_
    endif
    

    【讨论】:

    • 设置 V=1 似乎有帮助。如果间接(通过 npm)运行 node-gyp,这可以在运行 npm 之前由 export V=1 完成。
    猜你喜欢
    • 1970-01-01
    • 2017-08-12
    • 1970-01-01
    • 2021-01-13
    • 1970-01-01
    • 2019-06-23
    • 2019-12-23
    相关资源
    最近更新 更多