Comments (23)
ok I can get it to work if the command is redux-g or redux-generate no space
from redux-cli.
For windows user:
redux redux-g/i/ xyz
from redux-cli.
Interesting, don't have a windows machine to test this. I'll download a VM and see if I can debug
from redux-cli.
Can confirm on my Windows machine as well.
from redux-cli.
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.
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.
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.
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.
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.
Exact same issues for me on windows 10.
from redux-cli.
Got the same problem...
from redux-cli.
$ 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.
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.
@danyx23 Hi, as others have found you can use redux-g
instead of redux g
on windows.
from redux-cli.
@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.
I have the same problem when trying to create a new project.
Windows 8.1, Node v5.x
from redux-cli.
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.
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.
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.
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.
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.
Just submitted pull request that should fix issue with redux-new
from redux-cli.
#67 makes "redux new" etc work, without having to directly invoke the subcommands.
from redux-cli.
Related Issues (20)
- Implement an in memory file system to use in testing HOT 1
- Boilerplates and the new command HOT 3
- blueprint options HOT 5
- config command for cli HOT 2
- copy or clone command for cli HOT 6
- Adding prompts to blueprints HOT 4
- fileMapToken refactoring HOT 8
- Chat channel? HOT 2
- 2.0 default blueprints HOT 4
- blueprint injection or rerendering HOT 6
- asset blueprints
- eslint quotes avoidEscape HOT 2
- validate command for cli
- eslint fails for blueprints/blueprint/files/blueprints/name/index.js HOT 9
- Documentation for 2.0
- Use template-literal instead of EJS HOT 3
- Multiple and Alternate Templating Engines
- does the world need blueprints when it has Hygen? HOT 12
- Typescript Support
- How to integrate React-Router (v4.0.0) in this Cli
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redux-cli.