Can't spawn the start-storybook process
See original GitHub issueHi,
I have come accross this issue where I am unable to use the serverCmd flag to start a storybook. Please see the outout below:
> storycap --serverCmd "start-storybook -p 9001" http://localhost:9001/
info Wait for connecting storybook server http://localhost:9001/.
events.js:187
throw er; // Unhandled 'error' event
^
Error: spawn start-storybook ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn start-storybook',
path: 'start-storybook',
spawnargs: [ '-p', '9001' ]
}
Let me know if you need more info. Thank you 😄
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Error running storybook - sh: 1: start-storybook: not found
This error is due to the node_modules folder. If you delete that folder and run npm install . it will work. Mostly due...
Read more >angular/angular-cli - Gitter
[execsync v1.0.2] Attempting to compile native extensions. { Error: spawn node-gyp ENOENT at exports._errnoException (util.js:1026:11) at Process.
Read more >can't resolve 'fs' in dotenv react - You.com | The AI Search ...
Unable to resolve module fs - react-native-dotenv ... Process: I run start-storybook -p 9001 -c .storybook in the root of my React component...
Read more >Files changed (215) - Renovate Bot Package Diff
We detect a running process on your app's port and don't try and start the app if so. ... (CI systems that have...
Read more >env-cmd - npm
A function that executes a given command in a new child process with the ... for inspiration (uses the same cross-spawn lib underneath...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Let me know if I can help with this if you think it would make a good first OSS issue.
@UsamaHameed Sorry for my late reply. I published v2.3.5 with #143 . I think this issue was caused by missing cp spawning option
{ shell: true }
and I confirmed it fixed via GitHub action’s windows-server env.