Skip to content

Error running yo with Node.js 7.1 on windows 10 (Error: write EINVAL) #485

Closed

Description

@jochenvanwylick

After updating Node to latest version ( 7.1.0 ) on my windows 10 box, I globally installed yeoman. After that, I get an error running the yo command:

yeoman_error

Error message states:

D:\_code\test>yo
C:\Users\Jochen\AppData\Roaming\npm\node_modules\yo\node_modules\rx-lite\rx.lite.js:75
    throw e;
    ^

Error: write EINVAL
    at exports._errnoException (util.js:1022:11)
    at WriteStream.Socket._writeGeneric (net.js:715:26)
    at WriteStream.Socket._write (net.js:734:8)
    at doWrite (_stream_writable.js:334:12)
    at writeOrBuffer (_stream_writable.js:320:5)
    at WriteStream.Writable.write (_stream_writable.js:247:11)
    at WriteStream.Socket.write (net.js:661:40)
    at MuteStream.ondata (stream.js:31:26)
    at emitOne (events.js:96:13)
    at MuteStream.emit (events.js:188:7)

D:\_code\test>npm -v
3.10.9

D:\_code\test>node -v
v7.1.0

Activity

  1. mischah commented on Nov 9, 2016

    @mischah
    Member

    Mhmm. No Problems with Node 7.1.0 on Mac OS.

    image

  2. longjoel commented on Nov 10, 2016

    @longjoel

    I'm having the same problems.

    
    Error: write EINVAL
        at exports._errnoException (util.js:1022:11)
        at WriteStream.Socket._writeGeneric (net.js:715:26)
        at WriteStream.Socket._write (net.js:734:8)
        at doWrite (_stream_writable.js:334:12)
        at writeOrBuffer (_stream_writable.js:320:5)
        at WriteStream.Writable.write (_stream_writable.js:247:11)
        at WriteStream.Socket.write (net.js:661:40)
        at MuteStream.ondata (stream.js:31:26)
        at emitOne (events.js:96:13)
        at MuteStream.emit (events.js:188:7)
    
  3. SBoudrias commented on Nov 10, 2016

    @SBoudrias
    Member

    Got similar report on SBoudrias/Inquirer.js#447

    Looks like Windows and Node 7 don't play well with one of our dependency.

  4. mischah commented on Nov 10, 2016

    @mischah
    Member

    Curiously enough I have no problems with Windows 10 and Node 7.1.0 running in a VM:

    image

    So it would be awesome if @longjoel @jochenvanwylick or @Lichtjaeger could deep a little deeper to check if its only rx-lite which make problems. If so you could file a bug in the RxJS Repo.

  5. Lichtjaeger commented on Nov 10, 2016

    @Lichtjaeger

    Sorry, but that is not the same Windows Version I run. I have the latest Windows (10.0.14393 Build 14393 | Anniversary 2016).

    These are my error states:

    If I run yo in my cmd (or PowerShell too) it displays only black:
    schnappschuss_111016_111711_am
    After resize I get these error:
    schnappschuss_111016_111755_am

    If I run yo <generator_name> a get the following error:
    schnappschuss_111016_111900_am

  6. mischah commented on Nov 10, 2016

    @mischah
    Member
  7. mischah commented on Nov 10, 2016

    @mischah
    Member

    Regarding nodejs/node#9542 it looks like errors are caused by a Node.js regression.

    Current workaround: Get back to Node 7.0.0 or better use the current LTS version 6.9.x

  8. diegocapadi commented on Nov 19, 2016

    @diegocapadi

    mischah, you are right!

  9. changed the title [-]Error running yo in yo\node_modules\rx-lite\rx.lite.js:75[/-] [+]Error running yo with Node.js 7.1 on windows 10 (Error: write EINVAL)[/+] on Nov 22, 2016
  10. mischah commented on Nov 23, 2016

    @mischah
    Member

    Closing this since Node 7.2 fixes this issue:
    https://nodejs.org/en/blog/release/v7.2.0/

  11. jochenvw commented on Nov 23, 2016

    @jochenvw

    Yep - confirmed - thanks!

    image

  12. HelloPb commented on Dec 2, 2016

    @HelloPb

    I am getting error on windows 10, with node 7.2 latest
    image

  13. Lichtjaeger commented on Dec 2, 2016

    @Lichtjaeger

    @HelloPb I've made the experience that npm renames a file named ".gitignore" to ".npmignore".

    You can confirm this by looking in the "C:\Users\Prasanna\AppData\Roaming\npm\node_modules\generator-fwsp-hydra\app\templates" directory.

    It's a problem with the "generator-fwsp-hydra" module. Not with yo.

  14. emadum commented on Jan 5, 2017

    @emadum

    Hi @HelloPb, just had this thread called to my attention. We fixed this issue a few days after your post, so if you haven't already, updating to the latest version of generator-fwsp-hydra will fix it.

    Thanks!

  15. arigates commented on Sep 21, 2017

    @arigates

    i have downgrade version, and now work perfectly

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions