nodemon fails to run [Win 7] #104

37mm opened this Issue Jun 6, 2012 · 3 comments


None yet

4 participants


Current setup: Windows 7 x64 / Node 0.6.19 / Nodemon 0.6.19.

Whenever I try to run nodemon server.js I get the error

  watchFileChecker.check(function(success) {
TypeError: Cannot call method 'check' of undefined
    at Object.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\nodemon\nodemon.js:62:20)
    at Module._compile (module.js:446:26)
    at Object..js (module.js:464:10)
    at Module.load (module.js:353:31)
    at Function._load (module.js:311:12)
    at Array.0 (module.js:484:10)
    at EventEmitter._tickCallback (node.js:190:38)

When I run node server.js the server runs without any errors.

Any idea why node works but nodemon is failing?


I'm getting the same error on Windows 7. Checked the source code - var watchFileChecker = {}; is defined after actual watchFileChecker.check call.


I wonder what's different about the Windows implementation that it cares about this? I submitted a fix if someone cares to test it.


The fix works great for me, thanks!

@remy remy pushed a commit that closed this issue Jun 7, 2012
@dylanmcd dylanmcd Fix #104 and #105, move the tests and starting process to it's own fu…
…nction that starts at the end of the file to avoid calling undefined variables
@remy remy closed this in fc50eaa Jun 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment