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
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.
Comments