Git Product home page Git Product logo

Comments (23)

CurtisHumphrey avatar CurtisHumphrey commented on June 18, 2024 5

ok I can get it to work if the command is redux-g or redux-generate no space

from redux-cli.

AnhHT avatar AnhHT commented on June 18, 2024 1

For windows user:
redux redux-g/i/ xyz

from redux-cli.

SpencerCDixon avatar SpencerCDixon commented on June 18, 2024

Interesting, don't have a windows machine to test this. I'll download a VM and see if I can debug

from redux-cli.

amborle avatar amborle commented on June 18, 2024

Can confirm on my Windows machine as well.

from redux-cli.

CurtisHumphrey avatar CurtisHumphrey commented on June 18, 2024

It has something to do with out the options are being passed. I can get it to say index-g or index-generate depending on what I type

from redux-cli.

ichengyc avatar ichengyc commented on June 18, 2024

i have same problem on window_7_x64, i use 'npm i redux-cli -g'
node version: v5.9.0,
npm version: 3.7.3.
when i execute command line: redux new pro-new, out below error message:

module.js:341
throw err;
^

Error: Cannot find module 'C:\Users\q\AppData\Roaming\npm\node_modules\redux-cli\bin\index-new'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Function.Module.runMain (module.js:447:10)
at startup (node.js:142:18)
at node.js:939:3

from redux-cli.

blairbodnar avatar blairbodnar commented on June 18, 2024

Also happening for me on Windows 10 x64 with node v5.9.1. And like @CurtisHumphrey mentioned, seems to be something with the options. redux-g with no space works.

from redux-cli.

JeffBaumgardt avatar JeffBaumgardt commented on June 18, 2024

I have a similar issue myself running any commands. Cannot find module x

$ redux init
module.js:341
    throw err;
    ^

Error: Cannot find module 'U:\Users\Junior.Stormrage\AppData\Roaming\npm\node_modules\redux-cli\bin\index-init'
    at Function.Module._resolveFilename (module.js:339:15)
    at Function.Module._load (module.js:290:25)
    at Function.Module.runMain (module.js:447:10)
    at startup (node.js:142:18)
    at node.js:939:3

This is the same if I try to generate a new project or update existing.

from redux-cli.

JeffBaumgardt avatar JeffBaumgardt commented on June 18, 2024

Here's the same when I try a new project.

I've gone to the path and there are files present however they are named redux-init and redux-new. There is no index-init or index-new

Also on Windows 10 node v5.9.0

$ redux new soundboard-redux -H
module.js:341
    throw err;
    ^

Error: Cannot find module 'U:\Users\Junior.Stormrage\AppData\Roaming\npm\node_modules\redux-cli\bin\index-new'
    at Function.Module._resolveFilename (module.js:339:15)
    at Function.Module._load (module.js:290:25)
    at Function.Module.runMain (module.js:447:10)
    at startup (node.js:142:18)
    at node.js:939:3

from redux-cli.

anakinjay avatar anakinjay commented on June 18, 2024

Exact same issues for me on windows 10.

from redux-cli.

waniwang avatar waniwang commented on June 18, 2024

Got the same problem...

from redux-cli.

seungjae87 avatar seungjae87 commented on June 18, 2024
$ redux g form loginForm
module.js:327
    throw err;
    ^

Error: Cannot find module 'C:\Users\being\AppData\Roaming\npm\node_modules\redux-cli\bin\ind                   ex-g'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:139:18)
    at node.js:968:3

I got same issue at windows7, Node 4.4.1

from redux-cli.

danyx23 avatar danyx23 commented on June 18, 2024

Same problem, Win 10 4.4.2.

Anything we can do to help debug this? Would be neat to be able to use redux-cli :)

from redux-cli.

deep-c avatar deep-c commented on June 18, 2024

@danyx23 Hi, as others have found you can use redux-g instead of redux g on windows.

from redux-cli.

danyx23 avatar danyx23 commented on June 18, 2024

@deep-c thank you! But this doesn't work to create a new project, does it? That is what I wanted to do when I landed here :). But good to know that the rest of redux-cli should work with redux-g.

from redux-cli.

augusto-altman avatar augusto-altman commented on June 18, 2024

I have the same problem when trying to create a new project.

Windows 8.1, Node v5.x

from redux-cli.

augusto-altman avatar augusto-altman commented on June 18, 2024

For those that are dealing with new and init issues on Windows, try using redux-init instead of redux init and redux-new instead of redux new

from redux-cli.

danyx23 avatar danyx23 commented on June 18, 2024

When running redux-new I get: (Win10, powershell, git available via git for windows)

λ redux-new test
COMMAND:  undefined
  info: Creating new directory...
  create: Created directory: test
  info: Setting up tracking with git...
events.js:154
      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at exports._errnoException (util.js:856:11)
    at ReadStream.Socket._writeGeneric (net.js:675:26)
    at ReadStream.Socket._write (net.js:694:8)
    at doWrite (_stream_writable.js:292:12)
    at writeOrBuffer (_stream_writable.js:278:5)
    at ReadStream.Writable.write (_stream_writable.js:207:11)
    at ReadStream.Socket.write (net.js:620:40)
    at render (C:\Users\Daniel\AppData\Roaming\npm\node_modules\redux-cli\node_modules\log-update\index.js:11:10)
    at null._repeat (C:\Users\Daniel\AppData\Roaming\npm\node_modules\redux-cli\lib\models\ui.js:118:11)
    at wrapper [as _onTimeout] (timers.js:275:11)
 D:\projects\code\douglasconnect

from redux-cli.

devneel avatar devneel commented on June 18, 2024

Having this issue as well on Windows 8.1
redux new popcircle

module.js:338
throw err;
^
Error: Cannot find module 'C:\Users\devneel\AppData\Roaming\npm\node_modules\redux-cli\bin\index-new' at Function.Module._resolveFilename (module.js:336:15) at Function.Module._load (module.js:278:25) at Function.Module.runMain (module.js:501:10) at startup (node.js:129:16) at node.js:814:3

and trying redux-new popcircle results in:
redux-new popcircle

COMMAND: undefined info: Creating new directory... create: Created directory: popcircle info: Setting up tracking with git... events.js:85 throw er; // Unhandled 'error' event
^

Error: write EPIPE at exports._errnoException (util.js:746:11) at Socket._writeGeneric (net.js:690:26) at Socket._write (net.js:709:8) at doWrite (_stream_writable.js:301:12) at writeOrBuffer (_stream_writable.js:288:5) at Socket.Writable.write (_stream_writable.js:217:11) at Socket.write (net.js:634:40) at render (C:\Users\devneel\AppData\Roaming\npm\node_modules\redux-cli\node_modules\log-update\index.js:11:10) at null.<anonymous> (C:\Users\devneel\AppData\Roaming\npm\node_modules\redux-cli\lib\models\ui.js:118:11) at wrapper [as _onTimeout] (timers.js:265:14)

from redux-cli.

mzvast avatar mzvast commented on June 18, 2024

Windows 10 X64 same when $ redux-new cli-redux

COMMAND: undefined
info: Creating new directory...
create: Created directory: cli-redux
info: Setting up tracking with git...
events.js:154
throw er; // Unhandled 'error' event
^

Error: write EPIPE
at exports._errnoException (util.js:890:11)
at ReadStream.Socket._writeGeneric (net.js:679:26)
at ReadStream.Socket._write (net.js:698:8)
at doWrite (_stream_writable.js:301:12)
at writeOrBuffer (_stream_writable.js:287:5)
at ReadStream.Writable.write (_stream_writable.js:215:11)
at ReadStream.Socket.write (net.js:624:40)
at render (C:\Users\mzvast\AppData\Roaming\npm\node_modules\redux-cli\node_modules\log-update\index.js:11:10)
at Timeout._repeat (C:\Users\mzvast\AppData\Roaming\npm\node_modules\redux-cli\lib\models\ui.js:118:11)
at Timeout.wrapper as _onTimeout

from redux-cli.

ramonmata avatar ramonmata commented on June 18, 2024

Same error here

, Windows 10

λ redux-new demoApp                                                                                                  
COMMAND:  undefined                                                                                                  
  info: Creating new directory...                                                                                    
  create: Created directory: demoApp                                                                                 
  info: Setting up tracking with git...                                                                              
events.js:154                                                                                                        
      throw er; // Unhandled 'error' event                                                                           
      ^                                                                                                              

Error: write EPIPE                                                                                                   
    at exports._errnoException (util.js:890:11)                                                                      
    at ReadStream.Socket._writeGeneric (net.js:679:26)                                                               
    at ReadStream.Socket._write (net.js:698:8)                                                                       
    at doWrite (_stream_writable.js:301:12)                                                                          
    at writeOrBuffer (_stream_writable.js:287:5)                                                                     
    at ReadStream.Writable.write (_stream_writable.js:215:11)                                                        
    at ReadStream.Socket.write (net.js:624:40)                                                                       
    at render (C:\Users\ramon.mata\AppData\Roaming\npm\node_modules\redux-cli\node_modules\log-update\index.js:11:10)
    at Timeout._repeat (C:\Users\ramon.mata\AppData\Roaming\npm\node_modules\redux-cli\lib\models\ui.js:118:11)      
    at Timeout.wrapper [as _onTimeout] (timers.js:408:11)                                                            

from redux-cli.

mmichaels01 avatar mmichaels01 commented on June 18, 2024

Just submitted pull request that should fix issue with redux-new

#65

from redux-cli.

tornewuff avatar tornewuff commented on June 18, 2024

#67 makes "redux new" etc work, without having to directly invoke the subcommands.

from redux-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.