You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Sorry, forgot to mention. Using OS X 10.9.5 and nodemon is installed as global.
If you want some verbose_messages I can send, but I can't see anything suspicious there...
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 :
Esan-iMac:iris$nodemon main.js
19 Jan 21:57:13 - [nodemon] v1.2.1
19 Jan 21:57:13 - [nodemon] reading config /Users/esa/devel/iris/nodemon.json
19 Jan 21:57:13 - [nodemon] to restart at any time, enter `rs`
19 Jan 21:57:13 - [nodemon] ignoring: /Users/esa/devel/iris/.git/**/* /Users/esa/devel/iris/node_modules/**/* bower_components .sass-cache
19 Jan 21:57:13 - [nodemon] watching: *.*
19 Jan 21:57:13 - [nodemon] watching extensions: js
19 Jan 21:57:13 - [nodemon] starting `iojs main.js`
19 Jan 21:57:13 - [nodemon] child pid: 3221
19 Jan 21:57:13 - [nodemon] watching 15,612 files
^C19 Jan 22:04:47 - [nodemon] exiting
and it should be something:
Esan-iMac:iris$node main.js
>> node-dev-mode-enabled.
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
=> Iris listening on port 9042 /no-SSL/w:dev
js-bson error is due to something with MongoDB (connect-mongo@0.6.0) , but 2 other rows should come by 'console.log'
(f.ex. last row .... => Iris listening on port .....)
Esan-iMac:iris$supervisor main.js
Running node-supervisor with
program 'main.js'
--watch '.'
--extensions 'node,js'
--exec 'node'
Starting child process with 'node main.js'
Watching directory '/Users/esa/devel/iris' for changes.
>> node-dev-mode-enabled.
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
=> Iris listening on port 9042 /no-SSL/w:dev
[ .... made some mods here .... ]
crashing child
Starting child process with 'node main.js'
>> node-dev-mode-enabled.
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
=> Iris listening on port 9042 /no-SSL/w:dev
+ +
OK, I put mine 'main.js' script in some gist. It takes some time; have not used Gists for a while.
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.
» 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
Making new/clean directory and installing Express (nothing else) and copying simple 'test10.js' into it :
Esan-iMac:test24$npm install express
express@4.11.0 node_modules/express
├── merge-descriptors@0.0.2
...etc
Esan-iMac:test24$cp ~/devel/iris/test10.js .
Esan-iMac:test24$node test10.js
Example app listening at http://:::3000
^C
Esan-iMac:test24$nodemon test10.js
19 Jan 23:04:10 - [nodemon] v1.2.1
19 Jan 23:04:10 - [nodemon] to restart at any time, enter `rs`
19 Jan 23:04:10 - [nodemon] watching: *.*
19 Jan 23:04:10 - [nodemon] starting `node test10.js`
^C
exception in nodemon killing node
Error: write EPIPE
at Object.exports._errnoException (util.js:732:11)
at exports._exceptionWithHostPort (util.js:755:20)
at WriteWrap.afterWrite (net.js:745:14)
----------------------------------------------------------
If appropriate, please file an error with the output from:
$ node /usr/local/bin/nodemon test10.js --dump
At http://github.com/remy/nodemon/issues/new
----------------------------------------------------------
Still this 'console.log' is not visible running via nodemon.
This time I have't execMap, but nodemon is still installed as global?
Can it make some difference; I guess no....
Tried to install nodemon locally, but no difference (= no 'console.log' output).
It must be something with iojs.
Maybe I can install latest node again and test if it works with "pure" Node.js.
Yes, one step forward. Installed pure Node .pkg (v.0.10.33) and simple 'test10.js' works now. It must be inside 'iojs.js'.
Esan-iMac:test24$node -v
v0.10.33
Esan-iMac:test24$nodemon test10.js
19 Jan 23:15:49 - [nodemon] v1.2.1
19 Jan 23:15:49 - [nodemon] to restart at any time, enter `rs`
19 Jan 23:15:49 - [nodemon] watching: *.*
19 Jan 23:15:49 - [nodemon] starting `node test10.js`
Example app listening at http://0.0.0.0:3000
No 'execMap', and my /usr/local/bin seems :
Esan-iMac:bin$pwd
/usr/local/bin
Esan-iMac:bin$ls -lad io* node*
-rwxrwxr-x 1 root wheel 15749008 16 Tam 06:57 iojs
-rwxr-xr-x 1 24561 wheel 21511664 23 Lok 21:10 node
lrwxr-xr-x 1 esa admin 49 16 Tam 12:49 node-supervisor -> ../lib/node_modules/supervisor/lib/cli-wrapper.js
lrwxr-xr-x 1 esa admin 42 16 Tam 11:32 nodemon -> ../lib/node_modules/nodemon/bin/nodemon.js
Activity
remy commentedon Jan 19, 2015
Are you using the execMap for io.js or letting nodemon use the node alias to io.js?
kyrylkov commentedon Jan 19, 2015
Alias: 'nodemon -e html,css,js server.js'
netmiller commentedon Jan 19, 2015
I am using exeMap, but it did't help :
remy commentedon Jan 19, 2015
Okay, cool, I'll give this another try (I thought I tested it and it worked
tho).
Can you also share what OS you're running with any extra details?
On 19 Jan 2015 06:58, "Esa Laitila" notifications@github.com wrote:
kyrylkov commentedon Jan 19, 2015
Windows 10 Technical Preview Build 9879 64-bit
netmiller commentedon Jan 19, 2015
Sorry, forgot to mention. Using OS X 10.9.5 and nodemon is installed as global.
If you want some verbose_messages I can send, but I can't see anything suspicious there...
remy commentedon Jan 19, 2015
I'm on Mac OS X 10.9.5 also, and it's working fine for me:
I'm using a
~/nodemon.json
that looks like this:Anyone able to dig a little deeper to work this out with me?
Note that my install process for io.js was:
node
on the command line was aliased toiojs
, so -node
as node andiojs
as io.jsI suspect others don't have the step 3, which might be hiding some issue...
kyrylkov commentedon Jan 19, 2015
@remy I don't have
node
installed at all right now, onlyio.js
netmiller commentedon Jan 19, 2015
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'
(f.ex. last row .... => Iris listening on port .....)
remy commentedon Jan 19, 2015
Can you replicate with an io.js script that you can share (via a gist perhaps)?
netmiller commentedon Jan 19, 2015
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.
remy commentedon Jan 19, 2015
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!
netmiller commentedon Jan 19, 2015
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.
But you can easily find few console.log messages I'm using.
remy commentedon Jan 19, 2015
Yeah, I'd need the package.json for all the deps - which is why I said I
wanted a simple main.js...
On 19 January 2015 at 20:26, Esa Laitila notifications@github.com wrote:
netmiller commentedon Jan 19, 2015
I will try to generate some simple Express-app later this evening.
Meanwhile my package.json is here :
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.
3 remaining items
remy commentedon Jan 19, 2015
I get this (with your updated main.js):
What do you see (can you paste)?
netmiller commentedon Jan 19, 2015
Try this test10.js script, and install only latest Express.
I will do the same into clean directory.
remy commentedon Jan 19, 2015
Can you share your
/Users/esa/devel/iris/nodemon.json
file too (if that's suitable)?netmiller commentedon Jan 19, 2015
This is all I got into terminal (test10.js) :
and here is nodemon.json
netmiller commentedon Jan 19, 2015
Don't understand what is the difference; trying to install same into clean dir soon.
remy commentedon Jan 19, 2015
Hmm, weird. I might try to reinstall iojs (which will kill off node), there might be something in that.
netmiller commentedon Jan 19, 2015
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.
This time I have't execMap, but nodemon is still installed as global?
Can it make some difference; I guess no....
netmiller commentedon Jan 19, 2015
Tried to install nodemon locally, but no difference (= no 'console.log' output).
It must be something with iojs.
Maybe I can install latest node again and test if it works with "pure" Node.js.
netmiller commentedon Jan 19, 2015
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 :
remy commentedon Jan 19, 2015
Confirmed it by installing iojs over node.js - and it kills output.
I will investigate.
remy commentedon Jan 19, 2015
Fixed and landed in
nodemon@1.3.1
.netmiller commentedon Jan 19, 2015
Très bien, excellent work. Going forward with iojs and hoping all bugs fixed like you did =:)
wavded commentedon Jan 20, 2015
thx @remy
trevorstarick commentedon Jan 20, 2015
Awesome! Thanks @remy