Code Monkey home page Code Monkey logo

Comments (16)

ejsmith avatar ejsmith commented on May 22, 2024

Any updates on this issue? I've done a lot of searching trying to figure out how to get this working correctly on windows, but I haven't had any luck yet. Any tips would be appreciated.

from nodemon.

vip32 avatar vip32 commented on May 22, 2024

no, it's still not working in 0.6.9
works great for js files, but coffee files give the above error. maybe the author can elaborate on this issue.
if anyone knows a working solution for hot reloading on the windows platform ....

from nodemon.

vip32 avatar vip32 commented on May 22, 2024

and 0.6.11

from nodemon.

sgentile avatar sgentile commented on May 22, 2024

$ nodemon server.coffee
22 Feb 12:25:11 - [nodemon] v0.6.9
22 Feb 12:25:11 - [nodemon] watching: C:\Projects\Workspace\App
22 Feb 12:25:11 - [nodemon] starting coffee server.coffee
CreateProcessW: The system cannot find the file specified.

22 Feb 12:25:11 - [nodemon] app crashed - waiting for file changes before starting...

from nodemon.

ejsmith avatar ejsmith commented on May 22, 2024

Yep... really wish this was fixed. It makes working on Windows brutal. I guess some people would consider that a good thing though. :-)

from nodemon.

vip32 avatar vip32 commented on May 22, 2024

:) really frustrating. do you know any alternatives?

from nodemon.

vip32 avatar vip32 commented on May 22, 2024

an alternative is 'supervisor'. but it does not work with coffee either :(
it boils down to node's process.kill statement not really killing the coffee child process. it must be something with the coffee.cmd that i'm using (instead of node.exe):

supervisor --exec node_modules.bin\coffee.cmd index.coffee

from nodemon.

ejsmith avatar ejsmith commented on May 22, 2024

I'm sure I could write one specific to windows that would work, but it seems silly that nodemon can't be fixed. I guess there is some bug or limitation on the Windows platform?

from nodemon.

remy avatar remy commented on May 22, 2024

I'm doing some work on nodemon today, so I'll check this now.

from nodemon.

 avatar commented on May 22, 2024

Just noticed this as well, thanks remy.

from nodemon.

vip32 avatar vip32 commented on May 22, 2024

thanks remy, javascript and windows seem to work now. it picks up the changes and kills/restarts the process.

but, coffee still doesn't work : it doesn't pick up the changes when i use this command line :
nodemon -x .\node_modules.bin\coffee.cmd .\server.coffee

without the -x param i get : "The system cannot find the file specified". but it picks up changes, but repeats the error.

from nodemon.

mcintyre321 avatar mcintyre321 commented on May 22, 2024

I'm having the same issue as vip32 - the file changes are noticed, but coffee fails after that:

11 Apr 15:30:42 - [nodemon] starting 'coffee app.coffee'
CreateProcessW: The system cannot find the file specified.

11 Apr 15:30:42 - [nodemon] app crashed - waiting for file changes before starti
ng...

If it helps, I am starting nodemon by running an external program from Visual Studio, so

program path: c:\Windows\System32\Cmd.exe
arguments: /k nodemon app.coffee & pause & exit
working directory: C:\projects\ApiProxyDemo\aproxi

from nodemon.

malixsys avatar malixsys commented on May 22, 2024

I get the same errors...

A version of http://github.com/kuchumovn/node-js-development-mode works for me for now until this bug is resolved:

//my dev.cmd
c:\PROGRA~1\nodejs\node.exe "dev.js" --main-file app.coffee --coffee-script "node_modules/coffee-script/bin/coffee" --watch "['app.coffee','config/.coffee','controllers/.coffee','lib/.coffee','models/.coffee']" --options "{}"

from nodemon.

gokhan-berberoglu avatar gokhan-berberoglu commented on May 22, 2024

same problem here, with windows 7 & latest build from npm.

nodemon app.coffee
18 May 14:45:03 - [nodemon] v0.6.18
18 May 14:45:03 - [nodemon] watching: C:....
18 May 14:45:03 - [nodemon] starting coffee app.coffee
CreateProcessW: The system cannot find the file specified.
18 May 14:45:03 - [nodemon] app crashed - waiting for file changes before starti
ng...

from nodemon.

RoystonS avatar RoystonS commented on May 22, 2024

N.B. Another cause of 'CreateProcessW: The system cannot find the file specified." is when nodemon can't find your main executable (node/coffee) on your PATH, or the one it finds on your path doesn't match the expected type (e.g. .exe vs .bat vs .cmd). Try stating the program explicitly with '--exec'.

from nodemon.

remy avatar remy commented on May 22, 2024

@vip32 I know this is a really old issue, and in fact I missed that it was still an issue for you. Could you contribute a simple test that I can use to replicate the issue on windows (I've added a test directory to this repo). I'm thinking of adding something like testing to find the executable...

from nodemon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.