Nodemon: Don't show: Files triggering change check and changes after filters

Created on 8 Jan 2018  路  7Comments  路  Source: remy/nodemon

  • nodemon -v: 1.14.7
  • node -v: 9.3.0
  • Operating system/terminal environment: Ubuntu 17.10, default shell
  • Command you ran: yarn start (this will start a script that will ran: nodemon serv.js)

Expected behaviour

Not show :
[nodemon] files triggering change check: some/directory/some.file
[nodemon] changes after filters (before/after): 1/0

Actual behaviour

I have a view directories that need to be ignored but every time there is a change in that directory it outputs this:
[nodemon] files triggering change check: some/directory/some.file
[nodemon] changes after filters (before/after): 1/0
Is there a way to stop that because i can't find my application console.log lines

Screenshot:

Screenshot

Nodemon Dump

{ run: false,
  system: { cwd: '/home/mark/Documents/plex-like-web-app' },
  required: false,
  dirs: [ '/home/mark/Documents/plex-like-web-app' ],
  timeout: 1000,
  options: 
   { dump: true,
     verbose: true,
     ignore: 
      [ '**/.git',
        '**/.nyc_output',
        '**/.sass-cache',
        '**/bower_components',
        '**/coverage',
        '**/node_modules',
        'cache/*',
        'errors/*',
        'appdata/*',
        'conf/*',
        'dev/*',
        'node_modules/*',
        'routes/*',
        'www/*',
        '.git/*',
        '.gitignore',
        'LICENSE',
        'README.json',
        'yarn.lock',
        re: /.*.*\/\.git|.*.*\/\.nyc_output|.*.*\/\.sass\-cache|.*.*\/bower_components|.*.*\/coverage|.*.*\/node_modules|cache\/.*|errors\/.*|appdata\/.*|conf\/.*|dev\/.*|node_modules\/.*|routes\/.*|www\/.*|\.git\/.*|\.gitignore|LICENSE|README\.json|yarn\.lock/ ],
     trickrestart: true,
     watch: [ '*.*', re: /.*\..*/ ],
     ignoreRoot: 
      [ '**/.git',
        '**/.nyc_output',
        '**/.sass-cache',
        '**/bower_components',
        '**/coverage',
        '**/node_modules' ],
     restartable: 'rs',
     colours: true,
     execMap: { py: 'python', rb: 'ruby' },
     stdin: true,
     runOnChangeOnly: false,
     signal: 'SIGUSR2',
     stdout: true,
     watchOptions: {},
     execOptions: 
      { script: 'serv.js',
        exec: 'node',
        args: [],
        scriptPosition: 0,
        nodeArgs: undefined,
        execArgs: [],
        ext: 'js,mjs,json',
        env: {} },
     monitor: 
      [ '*.*',
        '!**/.git',
        '!**/.nyc_output',
        '!**/.sass-cache',
        '!**/bower_components',
        '!**/coverage',
        '!**/node_modules',
        '!cache/**/*',
        '!errors/**/*',
        '!appdata/**/*',
        '!conf/**/*',
        '!dev/**/*',
        '!node_modules/**/*',
        '!routes/**/*',
        '!www/**/*',
        '!.git/**/*',
        '!.gitignore',
        '!LICENSE',
        '!README.json',
        '!yarn.lock' ] },
  load: [Function],
  reset: [Function: reset],
  lastStarted: 0,
  loaded: [ '/home/mark/Documents/plex-like-web-app/nodemon.json' ],
  watchInterval: null,
  signal: 'SIGUSR2',
  command: 
   { raw: { executable: 'node', args: [ 'serv.js' ] },
     string: 'node serv.js' } }

has PR

Most helpful comment

Is it fixed in 1.1.4.9? I use 1.18.3 and I still got this problem.
Since my app is generating jsons, I see far too often the message.

Later edit: It works! sorry about that. If somebody else is doing the same mistake like I did: use"folder" instead of: "folder/*" and it's fine.

All 7 comments

I think I already have a fix for this in the wings.

Can you try with the debug version of nodemon (npm install nodemon@debug)

Thx that fixed the problem

Is it fixed in 1.1.4.9? I use 1.18.3 and I still got this problem.
Since my app is generating jsons, I see far too often the message.

Later edit: It works! sorry about that. If somebody else is doing the same mistake like I did: use"folder" instead of: "folder/*" and it's fine.

i'm seeing this issue with 1.18.3

"watch": "nodemon -V -w src -x \"yarn build\"",

this logs

[nodemon] watching 81 files
$ yarn clean && yarn tsc
$ rimraf build
$ tsc --project tsconfig.json
[nodemon] clean exit - waiting for changes before restart
[nodemon] files triggering change check: src/sdk/index.ts
[nodemon] matched rule: <ommited>/src/**/*
[nodemon] changes after filters (before/after): 1/0
[nodemon] files triggering change check: src/sdk/index.ts
[nodemon] matched rule: <ommited>/src/**/*
[nodemon] changes after filters (before/after): 1/0

EDIT: I had to include the right file extensions, changed my script to;

"watch": "nodemon -V -w src -e ts,tsx -x \"yarn build\"",

i have problem when i change the code. nodemon 1.18.9 is reload .and display [nodemon] restarting due to changes... but the output is not change in localhost:3000

Indeed, I'm having this problem with v19: "nodemon": "^1.19.1". This will only happen when I get an error inside the app. Otherwise the reloading is fine.

I am using --experimental-modules though so I am wondering if this is a problem for it:

nodemon --inspect -w -- --experimental-modules server.js server.js

Was this page helpful?
0 / 5 - 0 ratings