nodemon 启动无限 .node-xmlhttprequest-sync 文件 [英] nodemon starting infinite .node-xmlhttprequest-sync files
问题描述
我有一个应用程序可以导入一个有承诺的模块.
I have an app that imports a module that has a promise.
当我使用node app.js"启动它时效果很好
It works fine when I launch it with "node app.js"
但是,当我启动nodemon"时,它会不断创建文件 .node-xmlhttprequest-sync-1516(最后是随机数)
However, when I launch "nodemon" it keeps creating files .node-xmlhttprequest-sync-1516 (random numbers in the end)
有人遇到过这个问题吗?在谷歌上找不到任何答案...非常感谢!
Anyone has encountered this issue before? Can't find any answer on google... thanks a lot !
nodemon
[nodemon] 1.17.3
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node app.js`
app running on port 3100
app running on port 8080
secs:38.409
[nodemon] restarting due to changes...
[nodemon] starting `node app.js`
app running on port 3100
app running on port 8080
secs:0.615
[nodemon] restarting due to changes...
[nodemon] starting `node app.js`
app running on port 3100
app running on port 8080
secs:0.661
[nodemon] restarting due to changes...
[nodemon] starting `node app.js`
app running on port 3100
app running on port 8080
secs:0.593
[nodemon] restarting due to changes...
[nodemon] starting `node app.js`
app running on port 3100
app running on port 8080
secs:0.59
[nodemon] restarting due to changes...
[nodemon] starting `node app.js`
app running on port 3100
app running on port 8080
secs:0.603
[nodemon] restarting due to changes...
[nodemon] starting `node app.js`
app running on port 3100
app running on port 8080
secs:0.597
[nodemon] restarting due to changes...
[nodemon] starting `node app.js`
^CTerminate batch job (Y/N)? y
推荐答案
您正在关注 *.*
上的更改.您的服务器可能在某个时候正在写入一个文件,它导致服务器重新启动,并且这种情况一遍又一遍地发生.查看文档,了解如何忽略某些文件/文件夹
You are watching for changes on *.*
. Your server is probably writing a file at some point and it is causing the server to restart and this is happening over and over. Check out the docs on how to ignore certain files/folders
这篇关于nodemon 启动无限 .node-xmlhttprequest-sync 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!