Skip to content
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

Bash on Windows os.networkInterfaces: EINVAL #7150

Closed
neurosnap opened this issue Jun 4, 2016 · 4 comments
Closed

Bash on Windows os.networkInterfaces: EINVAL #7150

neurosnap opened this issue Jun 4, 2016 · 4 comments
Labels
invalid Issues and PRs that are invalid. os Issues and PRs related to the os subsystem. windows Issues and PRs related to the Windows platform.

Comments

@neurosnap
Copy link

OS: Windows 10 Pro Insider Preview
Build: 14352.rs1_release.160522-1930

erock@EROCK-WIN:/mnt/c/Users/Erock/$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.4 LTS
Release:        14.04
Codename:       trusty

Node on Bash on Windows seems to fail when trying to access networkInterfaces

erock@EROCK-WIN:/mnt/c/Users/Erock/$ node
> var os = require('os');
undefined
> os.networkInterfaces();
Error: EINVAL: invalid argument, uv_interface_addresses
    at Error (native)
    at repl:1:4
    at REPLServer.defaultEval (repl.js:272:27)
    at bound (domain.js:280:14)
    at REPLServer.runBound [as eval] (domain.js:293:12)
    at REPLServer.<anonymous> (repl.js:441:10)
    at emitOne (events.js:101:20)
    at REPLServer.emit (events.js:188:7)
    at REPLServer.Interface._onLine (readline.js:224:10)
    at REPLServer.Interface._line (readline.js:566:8)
@mscdex mscdex added os Issues and PRs related to the os subsystem. windows Issues and PRs related to the Windows platform. labels Jun 4, 2016
@neurosnap
Copy link
Author

microsoft/WSL#468

@StfBauer
Copy link

StfBauer commented Jun 4, 2016

In think the problem is more related to bash on windows then NodeJS.

@bnoordhuis
Copy link
Member

Agreed, not a node bug. I'll close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid Issues and PRs that are invalid. os Issues and PRs related to the os subsystem. windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

No branches or pull requests

4 participants