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.

"npm start" tries to execute "palemoon" throwing an error

See original GitHub issue

Describe the bug

npm start tries to open palemoon by default on Linux, even if it’s not installed.

Starting the development server...

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

Error: spawn /usr/bin/palemoon ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:268:19)
    at onErrorNT (internal/child_process.js:468: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:274:12)
    at onErrorNT (internal/child_process.js:468:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn /usr/bin/palemoon',
  path: '/usr/bin/palemoon',
  spawnargs: [ 'http://localhost:3000/' ]
}

Did you try recovering your dependencies?

Yes

Which terms did you search for in User Guide?

Nothing found in /docs/troubleshooting

Environment

  current version of create-react-app: 3.4.1
  running from /home/myself/.npm/_npx/5604/lib/node_modules/create-react-app

  System:
    OS: Linux 5.4 Manjaro Linux
    CPU: (4) x64 Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz
  Binaries:
    Node: 14.3.0 - /usr/bin/node
    Yarn: Not Found
    npm: 6.14.5 - /usr/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: 77.0.1
  npmPackages:
    react: ^16.13.1 => 16.13.1 
    react-dom: ^16.13.1 => 16.13.1 
    react-scripts: 3.4.1 => 3.4.1 
  npmGlobalPackages:
    create-react-app: Not Found

Steps to reproduce

(Write your steps here:)

  1. npx create-react-app my-app
  2. cd my-app
  3. npm start
  4. error

Expected behavior

Running the app in dev mode inside Firefox connecting to http://localhost:3000/

Actual behavior

2020-06-26-110626_3286x1080_scrot

Reproducible demo

TicTacToe tutorial

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

23reactions
hieulwcommented, May 2, 2021

I encounter the same issue but with /usr/bin/firefox. After a while, I figure out that change the $BROWSER should fix the error. Give the path to your own browser. I use brave for example

export BROWSER=/usr/bin/brave
npm start
4reactions
SergeyArenzoncommented, Nov 16, 2020

I encounter the same issues but with /usr/bin/firefox. After a while, I figure out that change the $BROWSER should fixed the error. Give the path to your own browser. I use brave for example

export BROWSER=/usr/bin/brave
npm start

Same was in my manjaro os with firefox, fixed it by export BROWSER=/usr/bin/firefox-developer-edition

Read more comments on GitHub >

github_iconTop Results From Across the Web

'npm start' returns error: "There might be a problem with the ...
In my case, I solved my problem in this way. create a .env at the root of the folder react folder; type SKIP_PREFLIGHT_CHECK=true...
Read more >
fingerprintjs2 - npm
Start using fingerprintjs2 in your project by running `npm i fingerprintjs2`. ... ERROR : The component function threw an error.
Read more >
lox - River Thames Conditions - Environment Agency - GOV.UK
Ipad iphone stand, Error e061 canon ir 6570, Satamapalvelut kuhmoinen, ... Npm install less windows, Warangka gayaman jogja, Boggabri rsl chinese, ...
Read more >
Change Log - Keypirinha
It uses Keypirinha's editor setting to open the selected item, or by default, tries to execute the item with Shell's edit verb. File...
Read more >
Download latest stable Chromium binaries (64-bit and 32-bit)
Download latest stable Chromium binaries for Windows, Mac, Linux, BSD and Android (64-bit and 32-bit)
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