os.networkInterfaces error in NodeJS / Yeoman
I managed to successfully install NodeJS, NPM and Yeoman. You see all installed components in the version below.
When create a new project and type.
yo <generator-name>
Everything works fine. A problem happens when I just try yo. Because Yeoman somehow tries to access the network interfaces of the operation system propably. This won't work on BashOnWindows because there is no network interface directly included in the Linux Sub System and just use the same network as the host one.

Am I completely wrong or can this be fixed in future releases? Thanx.
@StfBauer - If you can grab a strace of the failing command 'yo', we can see where it is failing and if it is tripping on something that is currently unimplemented. Thanks for trying out WSL!
@sunilmut Thank you. Attached the strace to this comment. Hope you find something useful.
Thanx for your great work so far. Love this.
socket(PF_NETLINK, SOCK_RAW, 0) = -1 EINVAL (Invalid argument)
WSL currently does not support NETLINK sockets. We are using our user voice page to prioritize the things to implement next. Please feel free to up vote this relevant task.
@sunilmut Thank you for the update. This will be required for the new SharePoint Framework update released by Microsoft. Because it use Yeoman generator to extend SharePoint from Linux, MacOSX as well as Windows. In this case it would be great to use it from Bash On Windows. Will add a user voice.
Added entry to user voices: https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/14605521-add-netlink-socket-support
I had a similar problem when trying to run the ionic.
Error getting IPv4 address: Error: EINVAL: invalid argument, uv_interface_addresses (CLI v1.7.15)
Has this been fixed?
Cause i am facing the same issue here is my error log
[22:09:50] Requiring external module babel-core/register /mnt/c/Users/abhis/WebProjects/emails/cts-report/node_modules/browser-sync/node_modules/dev-ip/lib/dev-ip.js:21 var networkInterfaces = require("os").networkInterfaces(); ^
Error: EINVAL: invalid argument, uv_interface_addresses
at Error (native)
at getIp (/mnt/c/Users/abhis/WebProjects/emails/cts-report/node_modules/browser-sync/node_modules/dev-ip/lib/dev-ip.js:21:43)
at Object.gulp
Exit status 1
at EventEmitter.
@StfBauer: I don't know for sure, but could the UserVoice suggestion you created be a duplicate of https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/13383789-enable-network-interface-enumeraration?
Hi! When it will be done? :)
We are looking into supporting NETLINK and RAW sockets. It's difficult to give any ETA at the moment.
I'm also facing the same problem when i run gulp. Is there any solution?
Just a note on current build 14393 this now gets to the bind call
socket(PF_NETLINK, SOCK_RAW, 0) = 9
bind(9, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = -1 EINVAL (Invalid argument)
Woohoo, progress! Soon I'll be able to switch to WSL for my node apps
Just wanna say, that BrowserSync propably fails because of the same reason:
/mnt/e/wsl/repos/static-site-generator/node_modules/dev-ip/lib/dev-ip.js:21
var networkInterfaces = require("os").networkInterfaces();
^
Error: EINVAL: invalid argument, uv_interface_addresses
at Error (native)
at getIp (/mnt/e/wsl/repos/static-site-generator/node_modules/dev-ip/lib/dev-ip.js:21:43)
at Object.<anonymous> (/mnt/e/wsl/repos/static-site-generator/node_modules/browser-sync/lib/utils.js:4:38)
at Module._compile (module.js:541:32)
at Module._extensions..js (module.js:550:10)
at Object.require.extensions.(anonymous function) [as .js] (/mnt/e/wsl/repos/static-site-generator/node_modules/babel-register/lib/node.js:156:7)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/mnt/e/wsl/repos/static-site-generator/node_modules/browser-sync/lib/snippet.js:9:20)
at Module._compile (module.js:541:32)
at Module._extensions..js (module.js:550:10)
at Object.require.extensions.(anonymous function) [as .js] (/mnt/e/wsl/repos/static-site-generator/node_modules/babel-register/lib/node.js:156:7)
at Module.load (module.js:458:32)
Everything is up-to-date (Windows, BrowserSync, Node, ...)
@simonknittel Yes still not work for me.
Same here, i've update to the recent build. still get this error

Any news on this? Any workaround? This is causing my webpack builds to fail.
We do not need raw sockets, rather, just the ability to query what interfaces there are.. Any updates on this?
Yep, I'm watching this as well. Breaking for me with the package "node-sass". Running "Bash on Ubuntu on Windows" in the Anniversary Update.