pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

      <legend id='43RoO'><style id='43RoO'><dir id='43RoO'><q id='43RoO'></q></dir></style></legend>

      <i id='43RoO'><tr id='43RoO'><dt id='43RoO'><q id='43RoO'><span id='43RoO'><b id='43RoO'><form id='43RoO'><ins id='43RoO'></ins><ul id='43RoO'></ul><sub id='43RoO'></sub></form><legend id='43RoO'></legend><bdo id='43RoO'><pre id='43RoO'><center id='43RoO'></center></pre></bdo></b><th id='43RoO'></th></span></q></dt></tr></i><div class="kicsame" id='43RoO'><tfoot id='43RoO'></tfoot><dl id='43RoO'><fieldset id='43RoO'></fieldset></dl></div>

        <small id='43RoO'></small><noframes id='43RoO'>

          <bdo id='43RoO'></bdo><ul id='43RoO'></ul>
        <tfoot id='43RoO'></tfoot>
      1. Nodemon監視選項損壞

        Nodemon watch option broken(Nodemon監視選項損壞)

          <small id='vBJUV'></small><noframes id='vBJUV'>

              <tbody id='vBJUV'></tbody>
            <legend id='vBJUV'><style id='vBJUV'><dir id='vBJUV'><q id='vBJUV'></q></dir></style></legend>
          • <i id='vBJUV'><tr id='vBJUV'><dt id='vBJUV'><q id='vBJUV'><span id='vBJUV'><b id='vBJUV'><form id='vBJUV'><ins id='vBJUV'></ins><ul id='vBJUV'></ul><sub id='vBJUV'></sub></form><legend id='vBJUV'></legend><bdo id='vBJUV'><pre id='vBJUV'><center id='vBJUV'></center></pre></bdo></b><th id='vBJUV'></th></span></q></dt></tr></i><div class="kgsqkcm" id='vBJUV'><tfoot id='vBJUV'></tfoot><dl id='vBJUV'><fieldset id='vBJUV'></fieldset></dl></div>
                • <bdo id='vBJUV'></bdo><ul id='vBJUV'></ul>
                  <tfoot id='vBJUV'></tfoot>
                  本文介紹了Nodemon監視選項損壞的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我正在使用 gulp-nodemon

                  config 目錄只包含一個文件 server.js.

                  config directory includes only one file, server.js.

                  $.nodemon({
                    script: 'config/server.js',
                    watch: ['config/**/*.js']
                  })
                  .on('restart', function () {
                    setTimeout(function () {
                      $.livereload.changed();
                     }, 1000);
                   });
                  

                  輸出:

                  [gulp] [nodemon] v1.2.1
                  [gulp] [nodemon] to restart at any time, enter `rs`
                  [gulp] [nodemon] watching: config/**/*.js
                  [gulp] [nodemon] starting `node config/server.js`
                  [gulp] [nodemon] watching 34,325 files - this might cause high cpu usage. To reduce use "--watch".
                  

                  如果我包含一個忽略選項,它會修復.

                  If i include an ignore option it fixes.

                  ignore: [
                    'node_modules/**',
                    'bower_components/**'
                  ]
                  

                  即使我告訴它只看配置目錄,為什么 nodemon 還要看一切?

                  Why does nodemon watch everything even when I tell it to watch only config directory?

                  從輸出中也可以看出,它只監視配置目錄 [nodemon] 監視:config/**/*.js

                  Also it appears from the output it only watches the config directory [nodemon] watching: config/**/*.js

                  推薦答案

                  這似乎是 nodemon 的錯誤 本身,因為我能夠使用簡單的 nodemon 命令重現它:

                  This seems to be a bug with nodemon itself, because I was able to reproduce it using the simple nodemon command :

                  > nodemon --watch app server.js
                  [nodemon] v1.2.1
                  [nodemon] to restart at any time, enter `rs`
                  [nodemon] watching: app/**/*
                  [nodemon] starting `node server.js`
                  [nodemon] watching 72,981 files - this might cause high cpu usage. To reduce use "--watch"
                  

                  nodemon 的默認行為是監視項目根目錄下的所有目錄,并忽略一些目錄,如 node_modulesbower_components.sass_cache.這個默認的 ignore 實際上不起作用,但已在 此 PR 中修復.應用此修復程序,我的輸出與預期一樣.

                  The default behavior of nodemon is to watch all the directories in the root of your project, and to ignore some directories like node_modules, bower_components or .sass_cache. This default ignore don't work actually, but was fixed in this PR. Applying this fix, my output was just as expected.

                  > nodemon --watch app server.js
                  [nodemon] v1.2.1
                  [nodemon] to restart at any time, enter `rs`
                  [nodemon] watching: app/**/*
                  [nodemon] starting `node server.js`
                  

                  我使用這兩種配置進行了測試,即使出現警告,我的 nodemon 也沒有刷新不在指定 watched 目錄中的文件更改,并且正常工作正如預期的那樣,沒有性能問題.這更可能是對我的誤報警告.

                  I tested using both configurations, and even with the warning, my nodemon was not refreshing on a file change that is not in the specified watched directory, and working just as expected with no performance issue. It's more likely a false-positive warning to me.

                  但現在我建議您堅持使用 ignore 規則,直到將其合并到 nodemon 或找到其他解決方法.

                  But for now I advice you to stay with your ignore rule until this is merged into nodemon or another workaround is found.

                  這里有一些相關的問題:#46, #366 和 #32

                  Here some related issues about that : #46, #366 and #32

                  這篇關于Nodemon監視選項損壞的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Browserify, Babel 6, Gulp - Unexpected token on spread operator(Browserify,Babel 6,Gulp - 傳播運算符上的意外令牌)
                  Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標志傳遞給 Gulp 以使其以不同的方式運行任務?)
                  Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                  How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運行 Gulp 任務)
                  Stylesheet not loaded because of MIME-type(由于 MIME 類型而未加載樣式表)
                  Visual Studio 2015 crashes when opening Javascript files(打開 Javascript 文件時 Visual Studio 2015 崩潰)
                • <i id='LFySl'><tr id='LFySl'><dt id='LFySl'><q id='LFySl'><span id='LFySl'><b id='LFySl'><form id='LFySl'><ins id='LFySl'></ins><ul id='LFySl'></ul><sub id='LFySl'></sub></form><legend id='LFySl'></legend><bdo id='LFySl'><pre id='LFySl'><center id='LFySl'></center></pre></bdo></b><th id='LFySl'></th></span></q></dt></tr></i><div class="0uwkoaq" id='LFySl'><tfoot id='LFySl'></tfoot><dl id='LFySl'><fieldset id='LFySl'></fieldset></dl></div>
                        <tbody id='LFySl'></tbody>

                      1. <small id='LFySl'></small><noframes id='LFySl'>

                            <bdo id='LFySl'></bdo><ul id='LFySl'></ul>
                          • <tfoot id='LFySl'></tfoot><legend id='LFySl'><style id='LFySl'><dir id='LFySl'><q id='LFySl'></q></dir></style></legend>
                            主站蜘蛛池模板: 杭州厂房降温,车间降温设备,车间通风降温,厂房降温方案,杭州嘉友实业爽风品牌 | 新疆系统集成_新疆系统集成公司_系统集成项目-新疆利成科技 | 山西3A认证|太原AAA信用认证|投标AAA信用证书-山西AAA企业信用评级网 | 聚天冬氨酸,亚氨基二琥珀酸四钠,PASP,IDS - 远联化工 | 膏方加工_丸剂贴牌_膏滋代加工_湖北康瑞生物科技有限公司 | 商用绞肉机-熟肉切片机-冻肉切丁机-猪肉开条机 - 广州市正盈机械设备有限公司 | 全自动变压器变比组别测试仪-手持式直流电阻测试仪-上海来扬电气 | 臭氧老化试验箱,高低温试验箱,恒温恒湿试验箱,防水试验设备-苏州亚诺天下仪器有限公司 | 振动筛,震动筛,圆形振动筛,振动筛价格,振动筛厂家-新乡巨宝机电 蒸汽热收缩机_蒸汽发生器_塑封机_包膜机_封切收缩机_热收缩包装机_真空机_全自动打包机_捆扎机_封箱机-东莞市中堡智能科技有限公司 | 电动葫芦-河北悍象起重机械有限公司| 拖鞋定制厂家-品牌拖鞋代加工厂-振扬实业中国高端拖鞋大型制造商 | 喷砂机厂家_自动除锈抛丸机价格-成都泰盛吉自动化喷砂设备 | 数年网路-免费在线工具您的在线工具箱-shuyear.com | 存包柜厂家_电子存包柜_超市存包柜_超市电子存包柜_自动存包柜-洛阳中星 | 联系我们老街华纳娱乐公司官网19989979996(客服) | 贝朗斯动力商城(BRCPOWER.COM) - 买叉车蓄电池上贝朗斯商城,价格更超值,品质有保障! | 保定市泰宏机械制造厂-河北铸件厂-铸造厂-铸件加工-河北大件加工 | 欧必特空气能-商用空气能热水工程,空气能热水器,超低温空气源热泵生产厂家-湖南欧必特空气能公司 | 京港视通报道-质量走进大江南北-京港视通传媒[北京]有限公司 | 深圳侦探联系方式_深圳小三调查取证公司_深圳小三分离机构 | 贵州自考_贵州自学考试网 | 合肥注册公司|合肥代办营业执照、2024注册公司流程 | 成都顶呱呱信息技术有限公司-贷款_个人贷款_银行贷款在线申请 - 成都贷款公司 | 无菌实验室规划装修设计-一体化实验室承包-北京洁净净化工程建设施工-北京航天科恩实验室装备工程技术有限公司 | 定做大型恒温循环水浴槽-工业用不锈钢恒温水箱-大容量低温恒温水槽-常州精达仪器 | YAGEO国巨电容|贴片电阻|电容价格|三星代理商-深圳市巨优电子有限公司 | 海日牌清洗剂-打造带电清洗剂、工业清洗剂等清洗剂国内一线品牌 海外整合营销-独立站营销-社交媒体运营_广州甲壳虫跨境网络服务 | 步进电机_agv电机_伺服马达-伺服轮毂电机-和利时电机 | 工业机械三维动画制作 环保设备原理三维演示动画 自动化装配产线三维动画制作公司-南京燃动数字 聚合氯化铝_喷雾聚氯化铝_聚合氯化铝铁厂家_郑州亿升化工有限公司 | 安徽净化工程设计_无尘净化车间工程_合肥净化实验室_安徽创世环境科技有限公司 | 广东成考网-广东成人高考网| 铝合金线槽_铝型材加工_空调挡水板厂家-江阴炜福金属制品有限公司 | 全温度恒温培养摇床-大容量-立式-远红外二氧化碳培养箱|南荣百科 | 回转窑-水泥|石灰|冶金-巩义市瑞光金属制品有限责任公司 | 钢衬四氟管道_钢衬四氟直管_聚四氟乙烯衬里管件_聚四氟乙烯衬里管道-沧州汇霖管道科技有限公司 | 一礼通 (www.yilitong.com)-企业礼品解决方案一站式服务平台 | 天津货架厂_穿梭车货架_重型仓储货架_阁楼货架定制-天津钢力仓储货架生产厂家_天津钢力智能仓储装备 | 比士亚-专业恒温恒湿酒窖,酒柜,雪茄柜的设计定制 | 彩信群发_群发彩信软件_视频短信营销平台-达信通 | 光伏支架成型设备-光伏钢边框设备-光伏设备厂家 | 热回收盐水机组-反应釜冷水机组-高低温冷水机组-北京蓝海神骏科技有限公司 |