Bash on Windows is Beta…

So last night I was setting up a machine and playing with a node project. I decided to jump into Bash on Windows to do node development and ran into a weird error. “ERROR in EINVAL: invalid argument, uv_interface_addresses.


After doing a little Googling I found some others posting this issue. What the problem stems from is related to iterating over network interfaces. When these scripts do this in Bash it apparently doesn’t work. I was able to switch to my normal command line with node install and run the same application though.

Figured I would share in case anyone else is struggling. We all need to remember this is Beta software and report the issues so they eventually get fixed.

In this case the issue is with os.networkInterfaces() call in the code I’m using.

My nodejs app looks like this and runs on nodejs on windows but fails on bash.

const os = require(‘os’);

var interfaces = os.networkInterfaces();


Video of issue: