-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nodemon compatibility with io.js? #468
Comments
Are you using the execMap for io.js or letting nodemon use the node alias to io.js? |
Alias: 'nodemon -e html,css,js server.js' |
I am using exeMap, but it did't help :
|
Okay, cool, I'll give this another try (I thought I tested it and it worked Can you also share what OS you're running with any extra details?
|
Windows 10 Technical Preview Build 9879 64-bit |
Sorry, forgot to mention. Using OS X 10.9.5 and nodemon is installed as global. |
I'm on Mac OS X 10.9.5 also, and it's working fine for me: I'm using a {
"execMap": {
"js": "iojs"
}
} Anyone able to dig a little deeper to work this out with me? Note that my install process for io.js was:
I suspect others don't have the step 3, which might be hiding some issue... |
@remy I don't have |
Nodemon get it's output fine, but console.log inside my main.js script is not visible. I have Express-application; haven't tried with pure node. I will do it this evening. With nodemon :
and it should be something:
js-bson error is due to something with MongoDB (connect-mongo@0.6.0) , but 2 other rows should come by 'console.log' |
Can you replicate with an io.js script that you can share (via a gist perhaps)? |
And with node-supervisor it shows :
OK, I put mine 'main.js' script in some gist. It takes some time; have not used Gists for a while. |
I'd suggest trying to get it down to something really small and basic - rather than your whole main.js. If only to keep things sane! |
Whole 'main.js' is in gist : https://gist.github.com/netmiller/520957cc727950c69a8d It's not very big script; only a bunch of Express-specific 'require' s etc. |
Yeah, I'd need the package.json for all the deps - which is why I said I On 19 January 2015 at 20:26, Esa Laitila notifications@github.com wrote:
|
I will try to generate some simple Express-app later this evening.
Anyway; pure node start works fine, and also supervisor is working without problems. Can't help much, but I'll try to make really simple test script soon. |
Are you using the |
@netmiller I ran your package and main.js: » nodemon main.js
19 Jan 20:53:10 - [nodemon] v1.2.1
19 Jan 20:53:10 - [nodemon] to restart at any time, enter `rs`
19 Jan 20:53:10 - [nodemon] watching: *.*
19 Jan 20:53:10 - [nodemon] starting `iojs main.js`
module.js:324
throw err;
^
Error: Cannot find module './config/server'
at Function.Module._resolveFilename (module.js:322:15)
at Function.Module._load (module.js:264:25)
at Module.require (module.js:351:17)
at require (module.js:370:17)
at Object.<anonymous> (/Users/remy/Sites/nodemon/test/fixtures/iojs/main.js:40:18)
at Module._compile (module.js:446:26)
at Object.Module._extensions..js (module.js:464:10)
at Module.load (module.js:341:32)
at Function.Module._load (module.js:296:12)
at Function.Module.runMain (module.js:487:10)
19 Jan 20:53:10 - [nodemon] app crashed - waiting for file changes before starting... |
OK, I created new Express script according 'Hello World' -tutorial. Here is results :
and this is my test10.js script :
No dependencies; only I created this script to same directory where are all my deps with "full app". But it should't make difference, or am I missing something.
Yes, I'm using execMap . |
I get this (with your updated main.js): » nodemon main.js
19 Jan 20:55:18 - [nodemon] v1.2.1
19 Jan 20:55:18 - [nodemon] to restart at any time, enter `rs`
19 Jan 20:55:18 - [nodemon] watching: *.*
19 Jan 20:55:18 - [nodemon] starting `iojs main.js`
Example app listening at http://:::3000 What do you see (can you paste)? |
Try this test10.js script, and install only latest Express. |
Can you share your |
This is all I got into terminal (test10.js) :
and here is nodemon.json
|
Don't understand what is the difference; trying to install same into clean dir soon. |
Hmm, weird. I might try to reinstall iojs (which will kill off node), there might be something in that. |
Making new/clean directory and installing Express (nothing else) and copying simple 'test10.js' into it :
Still this 'console.log' is not visible running via nodemon. |
Tried to install nodemon locally, but no difference (= no 'console.log' output). |
Yes, one step forward. Installed pure Node .pkg (v.0.10.33) and simple 'test10.js' works now. It must be inside 'iojs.js'.
No 'execMap', and my /usr/local/bin seems :
|
Confirmed it by installing iojs over node.js - and it kills output. I will investigate. |
Fixed and landed in |
Très bien, excellent work. Going forward with iojs and hoping all bugs fixed like you did =:) |
thx @remy |
Awesome! Thanks @remy |
Some folks have reported an issue with compatibility between io.js and nodemon. Might be worth the nodemon maintainers spinning up an install of io.js just to check. It might be easier for you to find the issue since you understand your own app architecture:
nodejs/node#485
The text was updated successfully, but these errors were encountered: