-
Notifications
You must be signed in to change notification settings - Fork 822
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
os.networkInterfaces error in NodeJS / Yeoman #468
Comments
@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. |
|
@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. |
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 Error: EINVAL: invalid argument, uv_interface_addresses |
@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
|
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:
Everything is up-to-date (Windows, BrowserSync, Node, ...) |
@simonknittel Yes still not work for me. |
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". |
I've hit the issue with
Anyway, I think that gets all the steps? This is definitely not a polished solution; it would be great if someone with a little more node experience than I could give it a try and report back on what other hackery they needed to do. |
@aseering unfortunately, this isn't a workaround, nor fix, since it breaks the application. Its like saying "when your car doesn't steer correctly, remove the steering wheel" |
If only I can get this working then I can watch the files for when my test changes then I can be golden! |
+1 |
Hi @micahblu -- thanks for posting, but it's a long thread in part because people keep asking questions that have already been answered :-) So I hope you'll understand if I give you a brief answer and direct you to go read the thread. In short: This problem has been fixed for a while now. The fix is only available in Insider builds, which are much newer than build 14393. The fix is not being backported; it will ship with the next major version of Windows, which is due out in a few months. There's lots of discussion about all of this above. |
Thanks! |
@aseering Will this be fixed in the creators update? |
@mikaturk It will. It has been fixed for us using insider buils for some good time now. |
Yes, it will be. |
I'm waiting for the fix. Meanwhile I switched temporary to git bash for Windows in order to run my node builds. I still have high hopes for Windows Subsystem for Linux feature. |
As per @nmai & @saschagehlich said, I've tried this command
On cmd (as Administrator), but still got no luck with either
And still having same issue on
Did I need to completely reinstall WSL again? or reboot my PC? or what? 😅 Windows 10 Home 1607 build 14393.969 |
You are still on Anniversary Update, could you install Creators Update and try again? |
Is the Creators Update already released publicly? or I need to join Windows Insider first? Thanks for your fast reply @benhillis |
Yes you can download now: https://www.microsoft.com/en-us/software-download/windows10ISO |
Okay @benhillis, I'll try it and will back to you. |
I can confirm that Creators Update is solve the issue.
also my
Considering to remove babun from my PC 🤔 Thanks @benhillis |
ubuntu apt-get install npm root@2NH7VYN4YAJPLYK:~# npm /usr/share/npm/node_modules/npmconf/config-defs.js:322 |
@SFLAQiu |
@SFLAQiu -- what version of Windows do you have? (Run That particular error should have been fixed in Windows build 15007. You can get a newer version through Windows Update. |
@aseering my windows os version is 14393,I'll try it out |
@mikaturk I've installed node |
have new question root@2NH7VYN4YAJPLYK:/# nvm use 8 but i restart bash,cmd node root@2NH7VYN4YAJPLYK:/# node
need again to nvm use |
Fixed in this release https://blogs.msdn.microsoft.com/commandline/2017/04/11/windows-10-creators-update-whats-new-in-bashwsl-windows-console/ |
Is there any body can tell me how can fix this problem.
node_modules/@angular/common/src/directives/ng_class.d.ts(48,34): error TS2304: Cannot find name 'Set'. npm ERR! A complete log of this run can be found in: D:\LSTU\LearnMySelf\web\Angular2\Angular2_GettingStarted\APM>` |
update to the latest Node version |
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.
The text was updated successfully, but these errors were encountered: