"npm start" tries to execute "palemoon" throwing an error
See original GitHub issueDescribe 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:)
- npx create-react-app my-app
- cd my-app
- npm start
- error
Expected behavior
Running the app in dev mode inside Firefox connecting to http://localhost:3000/
Actual behavior
Reproducible demo
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 exampleSame was in my manjaro os with firefox, fixed it by export BROWSER=/usr/bin/firefox-developer-edition