OpenFL 4.4 + node.js bug on OSX Sierra

Hi, I’m now getting this error compiling for html5 with node.js on OSX 10.12 ( previous version of OpenFL would just make the system process node crash so i guess that’s an improvement! :} )

The compilation output is fine, it’s just that the browser won’t launch automatically. No biggie, but just so you guys know.

events.js:72
throw er; // Unhandled ‘error’ event
^
Error: listen EADDRINUSE
at errnoException (net.js:904:11)
at Server._listen2 (net.js:1042:14)
at listen (net.js:1064:10)
at net.js:1146:9
at dns.js:72:18
at process._tickCallback (node.js:419:13)
at Function.Module.runMain (module.js:499:11)
at startup (node.js:119:16)
at node.js:906:3

That means the port is in use (often because another openfl test html5 process is running somewhere)

No worries, though, try adding --port=3001 or some other number, like:

openfl test html5 --port=3001

This should open the HTML5 node server in a different port to prevent conflicts

(Perhaps we should make a way to handle this in the future in the tools)

1 Like

Thanks, I’ll try that!