question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working in Ubuntu Bash on Windows

See original GitHub issue

Using it on Windows Subsystem for Linux gives this error:

> macaddress.one(function (err, mac) {console.log("Mac address for this host: %s", mac);});
Error: EINVAL: invalid argument, uv_interface_addresses
    at Error (native)
    at Object.lib.networkInterfaces (/mnt/c/.../node_modules/macaddress/index.js:31:21)
    at Object.lib.one (/mnt/c/.../node_modules/macaddress/index.js:79:26)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:7
  • Comments:6

github_iconTop GitHub Comments

2reactions
solumlcommented, Sep 13, 2016

@laggingreflex this looks to be a Bash on Windows issue -> https://github.com/Microsoft/BashOnWindows/issues/468

1reaction
laggingreflexcommented, Aug 11, 2016

It seems either Webpack or Babel (or one of their nested dependencies) depend on this as well, so they’re failing too…

ERROR in ../~/css-loader!./app/.../handsontable-pro/dist/handsontable.full.css
Module build failed: Error: EINVAL: invalid argument, uv_interface_addresses
    at Error (native)
    at Object.lib.networkInterfaces (/mnt/c/...project/node_modules/macaddress/index.js:31:21)
    at Object.lib.one (/mnt/c/...project/node_modules/macaddress/index.js:79:26)
    at Object.<anonymous> (/mnt/c/...project/node_modules/uniqid/index.js:15:77)
    at Object.require.extensions.(anonymous function) [as .js] (/mnt/c/...project/node_modules/babel-register/lib/node.js:156:7)
    at Object.<anonymous> (/mnt/c/...project/node_modules/postcss-filter-plugins/dist/index.js:9:15)
    at Object.require.extensions.(anonymous function) [as .js] (/mnt/c/...project/node_modules/babel-register/lib/node.js:156:7)
    at Object.<anonymous> (/mnt/c/...project/node_modules/cssnano/dist/index.js:21:30)
    at Object.require.extensions.(anonymous function) [as .js] (/mnt/c/...project/node_modules/babel-register/lib/node.js:156:7)
 @ ../~/style-loader!../~/css-loader!./app/.../handsontable-pro/dist/handsontable.full.css 4:14-106 13:2-17:4 14:20-112

ERROR in ./app/.../styles.css
Module build failed: ModuleBuildError: Module build failed: Error: EINVAL: invalid argument, uv_interface_addresses
    at Object.lib.networkInterfaces (/mnt/c/...project/node_modules/macaddress/index.js:31:21)
    at Object.lib.one (/mnt/c/...project/node_modules/macaddress/index.js:79:26)
    at Object.<anonymous> (/mnt/c/...project/node_modules/uniqid/index.js:15:77)
    at Object.require.extensions.(anonymous function) [as .js] (/mnt/c/...project/node_modules/babel-register/lib/node.js:156:7)
    at Object.<anonymous> (/mnt/c/...project/node_modules/postcss-filter-plugins/dist/index.js:9:15)
    at Object.require.extensions.(anonymous function) [as .js] (/mnt/c/...project/node_modules/babel-register/lib/node.js:156:7)
    at Object.<anonymous> (/mnt/c/...project/node_modules/cssnano/dist/index.js:21:30)
    at Object.require.extensions.(anonymous function) [as .js] (/mnt/c/...project/node_modules/babel-register/lib/node.js:156:7)
    at /mnt/c/...project/node_modules/webpack/lib/NormalModule.js:137:35
    at /mnt/c/...project/node_modules/loader-runner/lib/LoaderRunner.js:328:11
Read more comments on GitHub >

github_iconTop Results From Across the Web

Bash on Ubuntu on Windows not starting - Stack Overflow
Be sure that WSL (Windows Subsystem Linux) is checked/installed and your computer had a proper restart: {⊞START} → type " features " (ensure...
Read more >
Troubleshooting Windows Subsystem for Linux | Microsoft Learn
Provides detailed information about common errors and issues people run into while running Linux on the Windows Subsystem for Linux.
Read more >
WSL Bash doesn't start - windows 10 - Super User
Try to do a full reboot of Windows10, hold Shift , and click “Restart.” Normal reboot/shutdown action in the start menu will not...
Read more >
Bash script not working in Ubuntu in Windows 10
Maybe /bin/bash is not in your Ubuntu terminal path. You can check this by env command. Try adding #! /bin/bash to the very...
Read more >
How to Enable Bash in Windows 10 - Linux Hint
This error occurs due to the “Windows Subsystem for Linux” not running on the C drive, which is Windows's system drive. To address...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found