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

var networkInterfaces = require("os").networkInterfaces(); ^ Error: EINVAL, invalid argument #1847

Closed
ahmetcadirci25 opened this issue Apr 2, 2017 · 3 comments

Comments

@ahmetcadirci25
Copy link

ahmetcadirci25 commented Apr 2, 2017

My repo

https://github.com/ahmetcadirci25/browsersync-gulp-sass

$ gulp

Error: EINVAL, invalid argument
    at getIp (/home/ahmet/browsersync-gulp-sass/node_modules/browser-sync/node_modules/dev-ip/lib/dev-ip.js:21:43)
    at Object.<anonymous> (/home/ahmet/browsersync-gulp-sass/node_modules/browser-sync/lib/utils.js:4:38)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/ahmet/browsersync-gulp-sass/node_modules/browser-sync/lib/snippet.js:9:20)
    at Module._compile (module.js:456:26)

ekran alintisi

$ lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:        14.04
Codename:       trusty

$ node -v

v0.10.25

$ sass -v

Sass 3.2.12 (Media Mark)

$ gulp -v

[16:35:12] CLI version 3.9.1
[16:35:12] Local version 3.9.1
@therealkenc
Copy link
Collaborator

therealkenc commented Apr 2, 2017

See #468. This is implemented on Insider Builds, or sit tight for Creators Update.

@devgtorres
Copy link

put this in your compiler's config file.
require('os').networkInterfaces() } catch (e) { require('os').networkInterfaces = () => ({}) }

@Vinlock
Copy link

Vinlock commented Jun 19, 2017

@devgtorres - I'm not understanding where to put this for React :(. I tried webpack config and index.js and devserver config too... T-T

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants