Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I open react-devtools?

I am trying to install and run react-devtools. I am following this guide to do that: https://github.com/facebook/react-devtools/blob/master/packages/react-devtools/README.md

The install seems to go ok:

enter image description here

To verify it installed correctly I do this command:

enter image description here

And I go to that directory and verify there is a folder called react-devtools.

To open the tools the docs indicate I should do this:

enter image description here

Back in my project directory I run this command:

enter image description here

And it says command not found. So it looks like I have installed the devtools, but I am unable to open them. What am I doing wrong?

like image 693
Lizza Avatar asked Aug 26 '26 00:08

Lizza


2 Answers

Maybe this is what you want

Fix not run react-devtools

Option 1:

npm uninstall -g react-devtools
npm uninstall -g electron
npm install -g --verbose react-devtools

Option 2: (Fix in Linux, MacOSX)

sudo npm install -g react-devtools --unsafe-perm=true

Refer: react-devtools-command-not-found

like image 197
Jundat95 Avatar answered Aug 28 '26 04:08

Jundat95


if you want to run project level only do the following steps

  1. Install using yarn add --dev react-devtools
  2. Run yarn run react-devtools
like image 36
Damith Asanka Avatar answered Aug 28 '26 03:08

Damith Asanka



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!