D
D
Dmitry Belousov2020-04-12 12:36:04
webstorm
Dmitry Belousov, 2020-04-12 12:36:04

Why can't I launch a react project in webstorme?

Why can't I run a react project in webstorme using yarn, npm. All this happens on Manjaro Linux. When launched, it prints to the console:

$ react-scripts start
ℹ 「wds」: Project is running at http://192.168.0.11/
ℹ 「wds」: webpack output is served from 
ℹ 「wds」: Content not from webpack is served from /home/kidle/Документы/gpoFront/gpo/public
ℹ 「wds」: 404s will fallback to /
Starting the development server...

events.js:292
      throw er; // Unhandled 'error' event
      ^

Error: spawn /usr/bin/firefox ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
    at onErrorNT (internal/child_process.js:467:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12)
    at onErrorNT (internal/child_process.js:467:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn /usr/bin/firefox',
  path: '/usr/bin/firefox',
  spawnargs: [ 'http://localhost:3000' ]
}
error Command failed with exit code 1.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Robur, 2020-04-12
@dreven

1. webstorm has nothing to do with it.
2. problem with firefox
3. launch from terminal BROWSER=none yarn startand tear off the link with your hands

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question