Getting an Error while running npm start in react

Harish Kumawat

I was learning react and when I run 'npm start' command I got an error like this

node:events:371
  throw er; // Unhandled 'error' event
  ^                                                                             
Error: spawn firedragon ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
at onErrorNT (node:internal/child_process:480:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)         
                                                                               
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)
at onErrorNT (node:internal/child_process:480:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
   errno: -2,
   code: 'ENOENT',
   syscall: 'spawn firedragon',
   path: 'firedragon',
   spawnargs: [ 'http://localhost:3000' ]
}

I actually removed firedragon which was a default browser of my os (garuda linux) I actually like to use opera browser and this error only started coming after I deleted firedragon browser

Please help me reach out of this problem

Vivek

Assuming you have started with Create React App, you can use the BROWSER environment variable to specify a browser. By default, Create React App will use the default system browser.

In your case, you can try:

BROWSER=opera npm start

Refer https://create-react-app.dev/docs/advanced-configuration/ for more details.

Alternately, you can also try opening your preferred browser and setting it as the default system browser.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Getting error while running npm start in the cli

Getting an error while running npm install

I am getting Invalid regular expression error while running npm start

Getting error when npm start with React application

Getting Error 404 while running npm install create-react-app

Error while running react-native start

error while npm start getting error of sass-loader

getting error on running npm

I'm getting a failed to compile error after running `npm start`

I'm getting error while running start-dfs.sh

I am getting an unknown message while running npm start, Please guide

ERR! code ELIFECYCLE while running npm start

getting npm issue while running the project

Getting 404 error while running "npm test" for Angular2 using Jasmine and karma

Cycle error occurs when running 'npm start'?

Getting kexec error when running npm install

All React app not running on my pc using npm start. Cannot resolve the error

Error: Cannot find module 'xdl' when running "npm start" in React Native

Syntax error while running vite create with npm

npm error ELIFECYCLE while running the test

webpack error while running npm run build

Getting error while `npm run build`

Error while running react application

I am getting /bin/sh: [npm: not found error while executing the react image in Docker

Start script missing error when running npm start

Getting error while running nodejs program

Getting error while running a classification code in keras

Getting an error while running a JAR as a systemd service

getting error in flask while running the app