question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error spawn cmd ENOENT

See original GitHub issue

After run Storybook, I see an error

To Reproduce Steps to reproduce the behavior: 1- Run command start-storybook -p 6006 2- See an error

Screenshots image

Code snippets

import { configure } from '@storybook/react';
import { initializeRTL } from 'storybook-addon-rtl';

initializeRTL();

// automatically import all files ending in *.stories.js
const req = require.context('../src', true, /\.stories\.js$/);
function loadStories() {
  req.keys().forEach(filename => req(filename));
}

configure(loadStories, module);

System:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
snyderhauscommented, Jul 17, 2020

Double bump, what’s going on with this? Tried multiple things to resolve with no conclusion.

UPDATE: After further digging (and pure luck), I was able to determine that this issue was due to a default browser not being specified.

It should work if you run BROWSER=none npm run storybook

Hope this helps someone else!

0reactions
sarahannnicholsoncommented, Sep 29, 2021

@snyderhaus Thank you! That worked for me. Is there any way to specify a default browser? like a storybook or webpack env file?

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - Get 'spawn cmd ENOENT' when try to build Cordova ...
I checked system variables one more time and found the cause of the problem: missing C:\Windows\System32\ variable. I added it and that solved...
Read more >
Error: spawn cmd ENOENT in VS code · Issue #1818 - GitHub
Hi, I am getting following error while running command- SFDX: Authorize an Org in VS Code: Error: spawn cmd ENOENT at Process.ChildProcess.
Read more >
[Solved-5 Solutions] Error spawn enoent on node.js - Wikitechy
Spawn may emit the ENOENT error if the filename command (i.e, 'some-command') does not exist in at least one of the directories defined...
Read more >
Problem with npm start (error : spawn cmd ENOENT)-Reactjs
[Solved]-Problem with npm start (error : spawn cmd ENOENT)-Reactjs · Go to search bar and write environment variables. · Under the Advanced section...
Read more >
Error when Authenticate Orgs - Salesforce Stack Exchange
Run command prompt as admin (Start > cmd > Right-Click > RunAs Admin) · Run the command: netstat - ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found