【发布时间】:2018-10-04 13:57:35
【问题描述】:
我在 Windows 上使用把手和 nodemon。我注意到(在对 nodemon 使用 debug 参数时),hbs 文件 - 即使它们没有被编辑 - 也会触发 nodemon 更改。
文件真的在改变吗?如果我不编辑它们,为什么它们会发生变化?
[11:22:46] [nodemon] files triggering change check: ..\forgot-sent.hbs
[11:22:46] [nodemon] matched rule: C:\Users\me\Documents\myapp\views/**/*
[11:22:46] [nodemon] changes after filters (before/after): 1/1
[11:22:46] [nodemon] restarting due to changes...
[11:22:46] [nodemon] views\forgot-sent.hbs
如何让nodemon在文件更改时刷新,而不在文件更改时不刷新?
编辑:看起来像 nodemon/Windows 上的错误,请参阅 https://github.com/remy/nodemon/issues/1208
【问题讨论】:
-
尝试使用
nodemon -L运行 -
谢谢@beingsrv!唉,我做了一些研究,发现许多其他 Windows 用户有同样的问题 - 打开导致 nodemon 重新启动 - 我已经添加了一个指向上述错误的链接。
-
在 linux 的 docker 容器中也发生在我身上。你找到解决方案了吗?
-L没有帮助 -
@Kostanos 在下面查看我的新答案。