【问题标题】:How to hide the yellow console.logs in nodemon如何在nodemon中隐藏黄色的console.logs
【发布时间】:2017-12-09 17:36:11
【问题描述】:

是否可以隐藏使用 nodemon 开始监视时显示的黄色日志?

下面在控制台中显示为黄色。

[nodemon] 1.11.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: /var/www/test/server/core/src/**/*

【问题讨论】:

    标签: javascript node.js nodemon


    【解决方案1】:

    来自nodemon -h返回的文档:

    -q, --quiet ................. 最小化 nodemon 消息以仅启动/停止。

    所以运行:

    nodemon --quiet your-file.js
    

    【讨论】:

    • 在 nodemon@2.0.4 中完美运行,帮助中没有列出。
    • 看起来选项现在更加隐藏,但仍然存在,在 nodemon --help options 中。此命令列在nodemon -h 的底部。 github.com/remy/nodemon/issues/1160
    • T.Hanks 的提示。我完全重读了命令nodemon --help options!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-02-18
    • 2017-01-16
    • 2014-01-21
    • 1970-01-01
    • 2022-11-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多